Share via


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