Partager via


CommonParameters.ErrorVariable Property

Definition

Gets or sets the value of the ErrorVariable parameter for the cmdlet.

public:
 property System::String ^ ErrorVariable { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ ErrorVariable { Platform::String ^ get(); void set(Platform::String ^ value); };
public string ErrorVariable { get; set; }
[System.Management.Automation.Alias(new System.String[] { "ev" })]
[System.Management.Automation.Parameter]
public string ErrorVariable { get; set; }
member this.ErrorVariable : string with get, set
[<System.Management.Automation.Alias(new System.String[] { "ev" })>]
[<System.Management.Automation.Parameter>]
member this.ErrorVariable : string with get, set
Public Property ErrorVariable As String

Property Value

Attributes

Remarks

This parameter tells the command which variable to populate with the errors. Use +varname to append to the variable rather than clearing it.

Applies to