Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
'Usage
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
)

Parameters

name

The name of the property.

tag

Any arbitrary data it is needed by the adapter.

Exception typeCondition
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. 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

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.