Share via


Flowchart Constructeur

Définition

Crée une instance de la classe Flowchart.

public:
 Flowchart();
public Flowchart ();
Public Sub New ()

Exemples

L'exemple de code suivant montre comment créer une activité Flowchart. Cet exemple provient de l’exemple Gestion des erreurs dans une activité d’organigramme à l’aide de TryCatch .

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

S’applique à