System.CodeDom.CodeIterationStatement Class

Represents a for statement, or a loop through a block of statements, using a test expression as a condition for continuing to loop.

See Also: CodeIterationStatement Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CodeIterationStatement : CodeStatement

Remarks

A System.CodeDom.CodeIterationStatement can represent a for loop or while loop.

The CodeIterationStatement.InitStatement property specifies the statement to execute before the first loop iteration. The CodeIterationStatement.TestExpression property specifies the loop continuation expression, which must evaluate to true at the end of each loop iteration for another iteration to begin. The CodeIterationStatement.IncrementStatement property specifies the statement to execute at the end of each loop iteration. The CodeIterationStatement.Statements property specifies the collection of statements to execute within the loop.

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0