Freigeben über


PSVariableProperty(PSVariable) Constructor

Definition

Initializes a new instance of the PSVariableProperty class. This is a subclass of the NoteProperty that wraps a variable instead of a simple value.

public:
 PSVariableProperty(System::Management::Automation::PSVariable ^ variable);
public PSVariableProperty (System.Management.Automation.PSVariable variable);
new System.Management.Automation.PSVariableProperty : System.Management.Automation.PSVariable -> System.Management.Automation.PSVariableProperty
Public Sub New (variable As PSVariable)

Parameters

variable
PSVariable

The variable to wrap.

Exceptions

For an empty or null name.

Applies to