Edit

Share via


FlowDecision.True Property

Definition

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

public:
 property System::Activities::Statements::FlowNode ^ True { System::Activities::Statements::FlowNode ^ get(); void set(System::Activities::Statements::FlowNode ^ value); };
[System.Windows.Markup.DependsOn("Condition")]
public System.Activities.Statements.FlowNode True { get; set; }
[<System.Windows.Markup.DependsOn("Condition")>]
member this.True : System.Activities.Statements.FlowNode with get, set
Public Property True As FlowNode

Property Value

The activity to execute when the condition evaluates to true.

Attributes

Examples

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

Applies to