共用方式為


LoopStatementAst Constructor

Definition

Initialize the properties common to all loop statements.

protected:
 LoopStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ label, System::Management::Automation::Language::PipelineBaseAst ^ condition, System::Management::Automation::Language::StatementBlockAst ^ body);
protected LoopStatementAst (System.Management.Automation.Language.IScriptExtent extent, string label, System.Management.Automation.Language.PipelineBaseAst condition, System.Management.Automation.Language.StatementBlockAst body);
new System.Management.Automation.Language.LoopStatementAst : System.Management.Automation.Language.IScriptExtent * string * System.Management.Automation.Language.PipelineBaseAst * System.Management.Automation.Language.StatementBlockAst -> System.Management.Automation.Language.LoopStatementAst
Protected Sub New (extent As IScriptExtent, label As String, condition As PipelineBaseAst, body As StatementBlockAst)

Parameters

extent
IScriptExtent

The extent of the statement.

label
String

The optionally null label for the statement.

condition
PipelineBaseAst

The optionally null pipeline for the condition test of the statement.

body
StatementBlockAst

The body of the statement.

Exceptions

If extent or body is null.

Applies to