CimInstanceAdapter.GetFirstPropertyOrDefault Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a property if it's name matches the specified MemberNamePredicate, otherwise null.
public override System.Management.Automation.PSAdaptedProperty GetFirstPropertyOrDefault (object baseObject, System.Management.Automation.MemberNamePredicate predicate);
override this.GetFirstPropertyOrDefault : obj * System.Management.Automation.MemberNamePredicate -> System.Management.Automation.PSAdaptedProperty
Public Overrides Function GetFirstPropertyOrDefault (baseObject As Object, predicate As MemberNamePredicate) As PSAdaptedProperty
Parameters
- baseObject
- Object
- predicate
- MemberNamePredicate
Returns
An adapted property if the predicate matches, or null
.