FlowStep.Action Property

.NET Framework 4.6 and 4.5

The Activity that the FlowStep executes.

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

member Action : Activity with get, set

Property Value

Type: System.Activities.Activity
The activity to be executed as part of this step of the flowchart.

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.

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft