Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FlowDecision Constructor

Creates a new instance of the FlowDecision class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method FlowDecision() Creates a new instance of the FlowDecision class.
Public method FlowDecision(Activity<Boolean>) Creates a new instance of the FlowDecision class with the specified condition.
Public method FlowDecision(Expression<Func<ActivityContext, Boolean>>) Creates a new instance of the FlowDecision class with the specified condition.
Top

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
};


Community Additions

ADD
Show:
© 2015 Microsoft