Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSPropertyAdapter Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents an adapter that is used to expose the properties of objects. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System::Object
  System.Management.Automation::PSPropertyAdapter
    Microsoft.PowerShell.Cim::CimInstanceAdapter

public ref class PSPropertyAdapter abstract 

NameDescription
System_CAPS_protmethodPSPropertyAdapter()

Initializes a new instance of the PSPropertyAdapter class. This constructor is introduced by Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetProperties(Object^)

When overridden in a derived class, retrieves a collection that contains the properties for the given base object. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodGetProperty(Object^, String^)

When overridden in a derived class, retrieves the requested property for the specified base object. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodGetPropertyTypeName(PSAdaptedProperty^)

When overridden in a derived class, retrieves the full name of the .NET Framework type of the requested property. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodGetPropertyValue(PSAdaptedProperty^)

When overridden in a derived class, retrieves the value for the requested property. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetTypeNameHierarchy(Object^)

Retrieves a collection that contains the names of the .NET Framework types that form the class hierarchy for the specified base object. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodIsGettable(PSAdaptedProperty^)

When overridden in a derived class, retrieves a value that indicates whether the specified property value can be retrieved. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodIsSettable(PSAdaptedProperty^)

When overridden in a derived class, retrieves a value that indicates whether the specified property value can be set. This method is introduced in Windows PowerShell 2.0.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetPropertyValue(PSAdaptedProperty^, Object^)

When overridden in a derived class, sets the value of the specified property. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodToString()

(Inherited from Object.)

To create an adapter for the properties of a base object, developers need to define a class that derives from this class. However, implementations of this class cannot be used for exposing the methods or parameterized properties of the base object.

Most of the methods in the PSPropertyAdapter class deal with instances of PSAdaptedProperty class. This property class exposes the PSAdaptedProperty public constructor.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: