PSPropertyAdapter.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 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
- predicate
- MemberNamePredicate
Returns
An adapted property if the predicate matches, or null
.