다음을 통해 공유


DoWhileStatementAst Constructor

Definition

Construct a do/while statement.

public:
 DoWhileStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ label, System::Management::Automation::Language::PipelineBaseAst ^ condition, System::Management::Automation::Language::StatementBlockAst ^ body);
public DoWhileStatementAst (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.DoWhileStatementAst : System.Management.Automation.Language.IScriptExtent * string * System.Management.Automation.Language.PipelineBaseAst * System.Management.Automation.Language.StatementBlockAst -> System.Management.Automation.Language.DoWhileStatementAst
Public Sub New (extent As IScriptExtent, label As String, condition As PipelineBaseAst, body As StatementBlockAst)

Parameters

extent
IScriptExtent

The extent of the do/while statment from the label or do keyword to the closing curly brace.

label
String

The optionally null label.

condition
PipelineBaseAst

The condition tested on each iteration of the loop.

body
StatementBlockAst

The body executed on each iteration of the loop.

Exceptions

If extent or condition is null.

Applies to