FlowDecision.True Property

.NET Framework (current version)

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

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

public FlowNode True { get; set; }

Property Value

Type: System.Activities.Statements.FlowNode

The activity to execute when the condition evaluates to true.

The following code sample demonstrates setting the True 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