22 lines
364 B
PowerShell
22 lines
364 B
PowerShell
function Test-ConfigurationDataValueIsEmpty {
|
|
[CmdletBinding()]
|
|
Param(
|
|
[AllowNull()]
|
|
$Value
|
|
)
|
|
|
|
if($null -eq $Value){
|
|
return $true
|
|
}
|
|
|
|
if($Value -is [string]){
|
|
return [string]::IsNullOrWhiteSpace($Value)
|
|
}
|
|
|
|
if($Value -is [System.Array]){
|
|
return @($Value).Count -eq 0
|
|
}
|
|
|
|
return $false
|
|
}
|