How can you test if an object has a specific property?
Appreciate I can do ...
$members = Get-Member -InputObject $myobject
and th
I just started using PowerShell with PowerShell Core 6.0 (beta) and following simply works:
if ($members.NoteProperty) { # NoteProperty exist }
or
if (-not $members.NoteProperty) { # NoteProperty does not exist }