共用方式為


FlowDecision.False 屬性

定義

取得或設定當條件評估為 false 時要執行的 FlowNode

public:
 property System::Activities::Statements::FlowNode ^ False { System::Activities::Statements::FlowNode ^ get(); void set(System::Activities::Statements::FlowNode ^ value); };
[System.Windows.Markup.DependsOn("True")]
public System.Activities.Statements.FlowNode False { get; set; }
[<System.Windows.Markup.DependsOn("True")>]
member this.False : System.Activities.Statements.FlowNode with get, set
Public Property False As FlowNode

屬性值

當條件評估為 false 時,要執行的活動。

屬性

範例

下列程式碼範例將示範如何設定 FlowDecision 節點的 False 屬性。 此範例來自 使用 TryCatch 範例的流程圖活動中的錯誤處理

FlowDecision flowDecision = new FlowDecision
{
    Condition = ExpressionServices.Convert<bool>((ctx) => discount.Get(ctx) > 0),
    True = discountApplied,
    False = discountNotApplied
};

適用於