CodeConditionStatement.Condition 屬性

定義

取得或設定表達式為評估 truefalse

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

屬性值

A CodeExpression 用來評估 truefalse

備註

若此條件表達式值為 true,則集合中包含的程式碼 TrueStatements 將被執行。 若此條件表達式值為 且falseFalseStatements集合非空,則集合中包含的程式碼FalseStatements將被執行。

適用於

另請參閱