次の方法で共有


ForEachStatementAst Constructors

Definition

Overloads

ForEachStatementAst(IScriptExtent, String, ForEachFlags, VariableExpressionAst, PipelineBaseAst, StatementBlockAst)

Construct a foreach statement.

ForEachStatementAst(IScriptExtent, String, ForEachFlags, ExpressionAst, VariableExpressionAst, PipelineBaseAst, StatementBlockAst)

Construct a foreach statement.

ForEachStatementAst(IScriptExtent, String, ForEachFlags, VariableExpressionAst, PipelineBaseAst, StatementBlockAst)

Construct a foreach statement.

public:
 ForEachStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ label, System::Management::Automation::Language::ForEachFlags flags, System::Management::Automation::Language::VariableExpressionAst ^ variable, System::Management::Automation::Language::PipelineBaseAst ^ expression, System::Management::Automation::Language::StatementBlockAst ^ body);
public ForEachStatementAst (System.Management.Automation.Language.IScriptExtent extent, string label, System.Management.Automation.Language.ForEachFlags flags, System.Management.Automation.Language.VariableExpressionAst variable, System.Management.Automation.Language.PipelineBaseAst expression, System.Management.Automation.Language.StatementBlockAst body);
new System.Management.Automation.Language.ForEachStatementAst : System.Management.Automation.Language.IScriptExtent * string * System.Management.Automation.Language.ForEachFlags * System.Management.Automation.Language.VariableExpressionAst * System.Management.Automation.Language.PipelineBaseAst * System.Management.Automation.Language.StatementBlockAst -> System.Management.Automation.Language.ForEachStatementAst
Public Sub New (extent As IScriptExtent, label As String, flags As ForEachFlags, variable As VariableExpressionAst, expression As PipelineBaseAst, body As StatementBlockAst)

Parameters

extent
IScriptExtent

The extent of the statement, starting from the optional label or the foreach keyword and ending at the closing curly brace.

label
String

The optionally null label.

flags
ForEachFlags

Any flags that affect how the foreach statement is processed.

variable
VariableExpressionAst

The variable set on each iteration of the loop.

expression
PipelineBaseAst

The pipeline generating values to iterate through.

body
StatementBlockAst

The body to execute for each element written from pipeline.

Exceptions

If extent, expression, or variable is null.

Applies to

ForEachStatementAst(IScriptExtent, String, ForEachFlags, ExpressionAst, VariableExpressionAst, PipelineBaseAst, StatementBlockAst)

Construct a foreach statement.

public:
 ForEachStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ label, System::Management::Automation::Language::ForEachFlags flags, System::Management::Automation::Language::ExpressionAst ^ throttleLimit, System::Management::Automation::Language::VariableExpressionAst ^ variable, System::Management::Automation::Language::PipelineBaseAst ^ expression, System::Management::Automation::Language::StatementBlockAst ^ body);
public ForEachStatementAst (System.Management.Automation.Language.IScriptExtent extent, string label, System.Management.Automation.Language.ForEachFlags flags, System.Management.Automation.Language.ExpressionAst throttleLimit, System.Management.Automation.Language.VariableExpressionAst variable, System.Management.Automation.Language.PipelineBaseAst expression, System.Management.Automation.Language.StatementBlockAst body);
new System.Management.Automation.Language.ForEachStatementAst : System.Management.Automation.Language.IScriptExtent * string * System.Management.Automation.Language.ForEachFlags * System.Management.Automation.Language.ExpressionAst * System.Management.Automation.Language.VariableExpressionAst * System.Management.Automation.Language.PipelineBaseAst * System.Management.Automation.Language.StatementBlockAst -> System.Management.Automation.Language.ForEachStatementAst
Public Sub New (extent As IScriptExtent, label As String, flags As ForEachFlags, throttleLimit As ExpressionAst, variable As VariableExpressionAst, expression As PipelineBaseAst, body As StatementBlockAst)

Parameters

extent
IScriptExtent

The extent of the statement, starting from the optional label or the foreach keyword and ending at the closing curly brace.

label
String

The optionally null label.

flags
ForEachFlags

Any flags that affect how the foreach statement is processed.

throttleLimit
ExpressionAst

The limit to be obeyed during parallel processing, if any.

variable
VariableExpressionAst

The variable set on each iteration of the loop.

expression
PipelineBaseAst

The pipeline generating values to iterate through.

body
StatementBlockAst

The body to execute for each element written from pipeline.

Exceptions

If extent, expression, or variable is null.

Applies to