FlowStep.Action Property

Definition

The Activity that the FlowStep executes.

C#
public System.Activities.Activity Action { get; set; }

Property Value

The activity to be executed as part of this step of the flowchart.

Examples

The following code sample demonstrates using the Action property of a FlowStep node. This example is from the Fault Handling in a Flowchart Activity Using TryCatch sample.

C#
FlowStep singleStep = new FlowStep
{
    Action = new Assign
    {
        DisplayName = "discount = 10.0",
        To = new OutArgument<double> (discount),
        Value = new InArgument<double> (10.0)
    },
    Next = flowDecision
};

Applies to

Proizvod Verzije
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1