Action Property
Collapse the table of content
Expand the table of content

FlowStep.Action Property

.NET Framework (current version)

The Activity that the FlowStep executes.

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

public Activity Action { 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
Available since 4.0
Return to top
© 2016 Microsoft