PSAdaptedProperty(String, Object) Constructor

Definition

Creates a property for the given base object

public:
 PSAdaptedProperty(System::String ^ name, System::Object ^ tag);
public:
 PSAdaptedProperty(Platform::String ^ name, Platform::Object ^ tag);
 PSAdaptedProperty(std::wstring const & name, winrt::Windows::Foundation::IInspectable const & tag);
public PSAdaptedProperty (string name, object tag);
new System.Management.Automation.PSAdaptedProperty : string * obj -> System.Management.Automation.PSAdaptedProperty
Public Sub New (name As String, tag As Object)

Parameters

name
String

name of the property

tag
Object

an adapter can use this object to keep any arbitrary data it needs

Exceptions

for invalid arguments

Applies to