Flowchart.StartNode Property

.NET Framework (current version)
 

Gets or sets the FlowNode to be executed when the flowchart starts.

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

[DependsOnAttribute("Variables")]
public FlowNode StartNode { get; set; }

Property Value

Type: System.Activities.Statements.FlowNode

The starting node.

There must only be one StartNode.

The following code sample demonstrates configuring the StartNode of a Flowchart activity. This example is from the Fault Handling in a Flowchart Activity Using TryCatch sample.

Flowchart flowChart = new Flowchart
{
    DisplayName = "Promotional Discount Calculation",
    Variables = {discount, promo, numberOfKids},
    StartNode = promoCodeSwitch,
    Nodes = 
    { 
        promoCodeSwitch, 
        singleStep, 
        mnkStep, 
        mwkStep, 
        discountDefault, 
        flowDecision, 
        discountApplied, 
        discountNotApplied
    }
};

.NET Framework
Available since 4.0
Return to top
Show: