Creating Module
This commit is contained in:
18
Private/Test-ConfigurationDataItemHasKeys.ps1
Normal file
18
Private/Test-ConfigurationDataItemHasKeys.ps1
Normal file
@@ -0,0 +1,18 @@
|
||||
function Test-ConfigurationDataItemHasKeys {
|
||||
[CmdletBinding()]
|
||||
Param(
|
||||
[AllowNull()]
|
||||
$Item,
|
||||
[Parameter(Mandatory=$true)]
|
||||
[String[]]
|
||||
$KeyNames
|
||||
)
|
||||
|
||||
foreach($KeyName in $KeyNames){
|
||||
if(-not (Test-ConfigurationDataItemContainsKey -Item $Item -KeyName $KeyName)){
|
||||
return $false
|
||||
}
|
||||
}
|
||||
|
||||
return $true
|
||||
}
|
||||
Reference in New Issue
Block a user