CodeConditionStatement.Condition 属性

定义

获取或设置要计算 truefalse 的表达式。Gets or sets the expression to evaluate true or false.

public:
 property System::CodeDom::CodeExpression ^ Condition { System::CodeDom::CodeExpression ^ get(); void set(System::CodeDom::CodeExpression ^ value); };
public System.CodeDom.CodeExpression Condition { get; set; }
member this.Condition : System.CodeDom.CodeExpression with get, set
Public Property Condition As CodeExpression

属性值

要计算 truefalseCodeExpressionA CodeExpression to evaluate true or false.

注解

如果此条件表达式的计算true结果为, 则将执行TrueStatements集合中包含的代码。If this conditional expression evaluates to true, the code contained in the TrueStatements collection will be executed. 如果此条件表达式的计算false结果为FalseStatements , 且集合不为空, 则将执行FalseStatements集合中包含的代码。If this conditional expression evaluates to false and the FalseStatements collection is not empty, the code contained in the FalseStatements collection will be executed.

适用于

另请参阅