Partager via


CommonParameters.PipelineVariable Property

Definition

Gets or sets the PipelineVariable parameter for the cmdlet.

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

Property Value

Attributes

Remarks

This parameter defines a variable to hold the current pipeline output the command as it passes down the pipeline: Write-Output (1..10) -PipelineVariable WriteOutput | Foreach-Object { "Hello" } | Foreach-Object { $WriteOutput }

Applies to