Export (0) Print
Expand All

FlowDecision Constructor

Creates a new instance of the FlowDecision class.

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

public FlowDecision()

The following code sample demonstrates creating 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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft