PSAdaptedProperty(String, Object) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.