19 lines
382 B
PowerShell
19 lines
382 B
PowerShell
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
|
|
}
|