Share via


PSNoteProperty(String, Object) Constructor

Definition

Initializes a new instance of the PSNoteProperty class.

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

Parameters

name
String

Name of the property.

value
Object

Value of the property.

Exceptions

For an empty or null name.

Applies to