Windows Dev Center

PSAdaptedProperty Constructor

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)

Dim name As String
Dim tag As Object

Dim instance As New PSAdaptedProperty(name, tag)

public PSAdaptedProperty (
	string name,
	Object tag
public PSAdaptedProperty (
	String name, 
	Object tag
public function PSAdaptedProperty (
	name : String, 
	tag : Object



The name of the property.


Any arbitrary data it is needed by the adapter.

Exception typeCondition

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. For more information about the extended type system (ETS), see Windows PowerShell Extended Type System (ETS).

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.


Target Platforms

© 2015 Microsoft