Flowchart.StartNode Flowchart.StartNode Flowchart.StartNode Flowchart.StartNode Property

Definition

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

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

Property Value

The starting node.

Examples

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

Remarks

There must only be one StartNode.

Applies to