次の方法で共有


PSPropertyAdapter.GetFirstPropertyOrDefault Method

Definition

Returns a property if it's name matches the specified MemberNamePredicate, otherwise null.

public virtual System.Management.Automation.PSAdaptedProperty GetFirstPropertyOrDefault (object baseObject, System.Management.Automation.MemberNamePredicate predicate);
abstract member GetFirstPropertyOrDefault : obj * System.Management.Automation.MemberNamePredicate -> System.Management.Automation.PSAdaptedProperty
override this.GetFirstPropertyOrDefault : obj * System.Management.Automation.MemberNamePredicate -> System.Management.Automation.PSAdaptedProperty
Public Overridable 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