.NET Framework Class Library  

CodeConditionStatement.Condition Property

Gets or sets the expression to evaluate true or false.

[Visual Basic]
Public Property Condition As CodeExpression
[C#]
public CodeExpression Condition {get; set;}
[C++]
public: __property CodeExpression* get_Condition();
public: __property void set_Condition(CodeExpression*);
[JScript]
public function get Condition() : CodeExpression;
public function set Condition(CodeExpression);

Property Value

A CodeExpression to evaluate true or false.

Remarks

If this conditional expression evaluates to true, the code contained in the TrueStatements collection will be executed. If this conditional expression evaluates to false and the FalseStatements collection is not empty, the code contained in the FalseStatements collection will be executed.

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

CodeConditionStatement Class | CodeConditionStatement Members | System.CodeDom Namespace | CodeExpression