Udostępnij za pośrednictwem


PipelineAst Constructors

Definition

Overloads

PipelineAst(IScriptExtent, IEnumerable<CommandBaseAst>)

Construct a pipeline from a collection of commands.

PipelineAst(IScriptExtent, CommandBaseAst)

Construct a pipeline from a single command.

PipelineAst(IScriptExtent, IEnumerable<CommandBaseAst>, Boolean)

Construct a pipeline from a collection of commands.

PipelineAst(IScriptExtent, CommandBaseAst, Boolean)

Construct a pipeline from a single command.

PipelineAst(IScriptExtent, IEnumerable<CommandBaseAst>)

Construct a pipeline from a collection of commands.

public:
 PipelineAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::CommandBaseAst ^> ^ pipelineElements);
public PipelineAst (System.Management.Automation.Language.IScriptExtent extent, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.CommandBaseAst> pipelineElements);
new System.Management.Automation.Language.PipelineAst : System.Management.Automation.Language.IScriptExtent * seq<System.Management.Automation.Language.CommandBaseAst> -> System.Management.Automation.Language.PipelineAst
Public Sub New (extent As IScriptExtent, pipelineElements As IEnumerable(Of CommandBaseAst))

Parameters

extent
IScriptExtent

The extent of the pipeline.

pipelineElements
IEnumerable<CommandBaseAst>

The collection of commands representing the pipeline.

Exceptions

If extent is null.

If pipelineElements is null or is an empty collection.

Applies to

PipelineAst(IScriptExtent, CommandBaseAst)

Construct a pipeline from a single command.

public:
 PipelineAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::CommandBaseAst ^ commandAst);
public PipelineAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.CommandBaseAst commandAst);
new System.Management.Automation.Language.PipelineAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.CommandBaseAst -> System.Management.Automation.Language.PipelineAst
Public Sub New (extent As IScriptExtent, commandAst As CommandBaseAst)

Parameters

extent
IScriptExtent

The extent of the pipeline (which should be the extent of the command).

commandAst
CommandBaseAst

The command for the pipeline.

Exceptions

If extent or commandAst is null.

Applies to

PipelineAst(IScriptExtent, IEnumerable<CommandBaseAst>, Boolean)

Construct a pipeline from a collection of commands.

public:
 PipelineAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::CommandBaseAst ^> ^ pipelineElements, bool background);
public PipelineAst (System.Management.Automation.Language.IScriptExtent extent, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.CommandBaseAst> pipelineElements, bool background);
new System.Management.Automation.Language.PipelineAst : System.Management.Automation.Language.IScriptExtent * seq<System.Management.Automation.Language.CommandBaseAst> * bool -> System.Management.Automation.Language.PipelineAst
Public Sub New (extent As IScriptExtent, pipelineElements As IEnumerable(Of CommandBaseAst), background As Boolean)

Parameters

extent
IScriptExtent

The extent of the pipeline.

pipelineElements
IEnumerable<CommandBaseAst>

The collection of commands representing the pipeline.

background
Boolean

Indicates that this pipeline should be run in the background.

Exceptions

If extent is null.

If pipelineElements is null or is an empty collection.

Applies to

PipelineAst(IScriptExtent, CommandBaseAst, Boolean)

Construct a pipeline from a single command.

public:
 PipelineAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::CommandBaseAst ^ commandAst, bool background);
public PipelineAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.CommandBaseAst commandAst, bool background);
new System.Management.Automation.Language.PipelineAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.CommandBaseAst * bool -> System.Management.Automation.Language.PipelineAst
Public Sub New (extent As IScriptExtent, commandAst As CommandBaseAst, background As Boolean)

Parameters

extent
IScriptExtent

The extent of the pipeline (which should be the extent of the command).

commandAst
CommandBaseAst

The command for the pipeline.

background
Boolean

Indicates that this pipeline should be run in the background.

Exceptions

If extent or commandAst is null.

Applies to