CodeIterationStatement Constructor (CodeStatement^, CodeExpression^, CodeStatement^, array<CodeStatement^>^)

 

Initializes a new instance of the CodeIterationStatement class using the specified parameters.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public:
CodeIterationStatement(
	CodeStatement^ initStatement,
	CodeExpression^ testExpression,
	CodeStatement^ incrementStatement,
	... array<CodeStatement^>^ statements
)

Parameters

initStatement
Type: System.CodeDom::CodeStatement^

A CodeStatement containing the loop initialization statement.

testExpression
Type: System.CodeDom::CodeExpression^

A CodeExpression containing the expression to test for exit condition.

incrementStatement
Type: System.CodeDom::CodeStatement^

A CodeStatement containing the per-cycle increment statement.

statements
Type: array<System.CodeDom::CodeStatement^>^

An array of type CodeStatement containing the statements within the loop.

.NET Framework
Available since 1.1
Return to top
Show: