FlowDecision.False Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the FlowNode that is executed when the condition evaluates to false.

Namespace:   System.Activities.Statements
Assembly:  System.Activities (in System.Activities.dll)

[DependsOnAttribute("True")]
public FlowNode False { get; set; }

Property Value

Type: System.Activities.Statements.FlowNode

The activity that is executed when the condition evaluates to false.

The following code sample demonstrates setting the False property of a FlowDecision node. This example is from the Fault Handling in a Flowchart Activity Using TryCatch sample.

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

.NET Framework
Available since 4.0
Return to top
Show: