次の方法で共有


CimInstanceAdapter.GetFirstPropertyOrDefault Method

Definition

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

Returns

An adapted property if the predicate matches, or null.

Applies to