Share via


CommonParameters.OutVariable Property

Definition

Gets or sets the OutVariable parameter for the cmdlet.

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

Property Value

Attributes

Remarks

This parameter tells the command to set all success output in the specified variable. Similar to the way -errorvariable sets all errors to a variable name. Semantically this is equivalent to : command |set-var varname -passthru but it should be MUCH faster as there is no binding that takes place

Applies to