CodeIterationStatement 构造函数

定义

初始化 CodeIterationStatement 类的新实例。

重载

CodeIterationStatement()

初始化 CodeIterationStatement 类的新实例。

CodeIterationStatement(CodeStatement, CodeExpression, CodeStatement, CodeStatement[])

使用指定参数初始化 CodeIterationStatement 类的新实例。

CodeIterationStatement()

Source:
CodeIterationStatement.cs
Source:
CodeIterationStatement.cs
Source:
CodeIterationStatement.cs

初始化 CodeIterationStatement 类的新实例。

public:
 CodeIterationStatement();
public CodeIterationStatement ();
Public Sub New ()

适用于

CodeIterationStatement(CodeStatement, CodeExpression, CodeStatement, CodeStatement[])

Source:
CodeIterationStatement.cs
Source:
CodeIterationStatement.cs
Source:
CodeIterationStatement.cs

使用指定参数初始化 CodeIterationStatement 类的新实例。

public:
 CodeIterationStatement(System::CodeDom::CodeStatement ^ initStatement, System::CodeDom::CodeExpression ^ testExpression, System::CodeDom::CodeStatement ^ incrementStatement, ... cli::array <System::CodeDom::CodeStatement ^> ^ statements);
public CodeIterationStatement (System.CodeDom.CodeStatement initStatement, System.CodeDom.CodeExpression testExpression, System.CodeDom.CodeStatement incrementStatement, params System.CodeDom.CodeStatement[] statements);
new System.CodeDom.CodeIterationStatement : System.CodeDom.CodeStatement * System.CodeDom.CodeExpression * System.CodeDom.CodeStatement * System.CodeDom.CodeStatement[] -> System.CodeDom.CodeIterationStatement
Public Sub New (initStatement As CodeStatement, testExpression As CodeExpression, incrementStatement As CodeStatement, ParamArray statements As CodeStatement())

参数

initStatement
CodeStatement

CodeStatement,包含循环初始化语句。

testExpression
CodeExpression

CodeExpression,包含用于测试退出条件的表达式。

incrementStatement
CodeStatement

CodeStatement,包含随循环递增的语句。

statements
CodeStatement[]

CodeStatement 类型的数组,包含循环范围内的语句。

另请参阅

适用于