Bagikan melalui


Flowchart.StartNode Properti

Definisi

Mendapatkan atau mengatur yang FlowNode akan dijalankan saat diagram alur dimulai.

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

Nilai Properti

Simpul awal.

Atribut

Contoh

Sampel kode berikut menunjukkan konfigurasi StartNode Flowchart aktivitas. Contoh ini berasal dari Penanganan Kesalahan dalam Aktivitas Diagram Alur Menggunakan sampel TryCatch .

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

Keterangan

Hanya boleh ada satu StartNode.

Berlaku untuk