22 lines
432 B
PowerShell
22 lines
432 B
PowerShell
function Test-ConfigurationDataMapContainsKey {
|
|
[CmdletBinding()]
|
|
Param(
|
|
[Parameter(Mandatory=$true)]
|
|
$Map,
|
|
|
|
[Parameter(Mandatory=$true)]
|
|
[string]
|
|
$Key
|
|
)
|
|
|
|
if($Map -is [System.Collections.Hashtable]){
|
|
return $Map.ContainsKey($Key)
|
|
}
|
|
|
|
if($Map -is [System.Collections.Specialized.OrderedDictionary]){
|
|
return $Map.Contains($Key)
|
|
}
|
|
|
|
return $false
|
|
}
|