PSPropertyAdapter Class

Definition

User-defined property adapter.

public ref class PSPropertyAdapter abstract
public abstract class PSPropertyAdapter
type PSPropertyAdapter = class
Public MustInherit Class PSPropertyAdapter
Inheritance
PSPropertyAdapter
Derived

Remarks

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

Constructors

PSPropertyAdapter()

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