Flowchart.StartNode 属性

定义

获取或设置要在流程图启动时执行的 FlowNode

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

属性值

起始节点。

属性

示例

下面的代码示例演示如何配置 Flowchart 活动的 StartNode。 此示例摘自 使用 TryCatch 的流程图活动中的错误处理 示例。

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

注解

必须只有一个 StartNode

适用于