Flowchart.StartNode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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; }
[<System.Windows.Markup.DependsOn("Variables")>]
member this.StartNode : System.Activities.Statements.FlowNode with get, set
Public Property StartNode As FlowNode
Property Value
The starting node.
- Attributes
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
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.