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.

PSAdaptedProperty Constructor (String, Object)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the PSAdaptedProperty class that contains the name of the property and data needed by the adapter. This constructor is introduced by Windows PowerShell 2.0.

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

public PSAdaptedProperty(
	string name,
	object tag
)

Parameters

name
Type: System.String

The name of the property.

tag
Type: System.Object

Any arbitrary data it is needed by the adapter.

Exception Condition
ArgumentException

The name or tag parameter is not valid.

An adapted property is any property that is made available through an adapter. For more information about adapted properties as well as other property types defined by the extended type system (ETS), see ETS Properties [ps]. For more information about the extended type system (ETS), see Windows PowerShell Extended Type System (ETS) [ps].

Although it is possible to derive from this class, there is no established scenario for doing this, and any attempt to do so might result in unexpected behavior.

Return to top

Community Additions

Show: