FlowDecision Constructor

.NET Framework (current version)
 

Creates a new instance of the FlowDecision class.

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

NameDescription
System_CAPS_pubmethodFlowDecision()

Creates a new instance of the FlowDecision class.

System_CAPS_pubmethodFlowDecision(Activity<Boolean>)

Creates a new instance of the FlowDecision class with the specified condition.

System_CAPS_pubmethodFlowDecision(Expression<Func<ActivityContext, Boolean>>)

Creates a new instance of the FlowDecision class with the specified condition.

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
};
Return to top
Show: