Lire en anglais

Partager via


PSPropertyAdapter Class

Definition

User-defined property adapter.

C++
public ref class PSPropertyAdapter abstract
Inheritance
PSPropertyAdapter
Derived

Remarks

This class is used to expose a simplified version of the type adapter API

Constructors

Methods

GetFirstPropertyOrDefault(Object, MemberNamePredicate)

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

GetProperties(Object)

Returns a list of the adapted properties.

GetProperty(Object, String)

Returns a specific property, or null if the base object does not contain the given property.

GetPropertyTypeName(PSAdaptedProperty)

Returns the type for a given property.

GetPropertyValue(PSAdaptedProperty)

Returns the value of a given property.

GetTypeNameHierarchy(Object)

Returns the type hierarchy for the given object.

IsGettable(PSAdaptedProperty)

Returns true if the given property is gettable.

IsSettable(PSAdaptedProperty)

Returns true if the given property is settable.

SetPropertyValue(PSAdaptedProperty, Object)

Sets the value of a given property.

Applies to

Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0