CommonParameters.PipelineVariable Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 }