CodeConditionStatement.Condition 属性

定义

获取或设置要计算 true 的表达式或 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

属性值

要计算CodeExpression的 A truefalse

注解

如果此条件表达式的计算结果 true为,将执行集合中包含的 TrueStatements 代码。 如果此条件表达式的计算结果 false 为且 FalseStatements 集合不为空,则执行集合中包含的 FalseStatements 代码。

适用于

另请参阅