.NET Framework Class Library  

CodeIterationStatement.InitStatement Property

Gets or sets the loop initialization statement.

[Visual Basic]
Public Property InitStatement As CodeStatement
[C#]
public CodeStatement InitStatement {get; set;}
[C++]
public: __property CodeStatement* get_InitStatement();
public: __property void set_InitStatement(CodeStatement*);
[JScript]
public function get InitStatement() : CodeStatement;
public function set InitStatement(CodeStatement);

Property Value

A CodeStatement that indicates the loop initialization statement.

Remarks

You can specify an empty initialization statement by setting this property to a CodeExpressionStatement that contains a CodeSnippetExpression that contains an empty string.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

CodeIterationStatement Class | CodeIterationStatement Members | System.CodeDom Namespace