PSEC - Powershell Enhanced Capability
Version 1.2.1

exists (src: start-psec-v4.ps1)

Signature

[UKN] exists ( [any]$obj, [any]$prop)

Parameters

Parameter Format Description

$obj any parm description missing

$prop any parm description missing

Description

return $true if property exists

Notes

used in strict mode to validate property exists before using

This can be used on hashtables, custom objects or class files.

EC:9C10 Fails on hashTables if value is null. use $ht.containsKey($key)

PSEC - Powershell Enhanced Capability
1.2.1

Copyright © 2018-2021, 2022, Rexcel System Inc.

 

 

 

 

 

X