WorkflowRuntime.WorkflowStarted Événement
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Se produit lors du démarrage d'une instance de workflow.
public:
event EventHandler<System::Workflow::Runtime::WorkflowEventArgs ^> ^ WorkflowStarted;
public event EventHandler<System.Workflow.Runtime.WorkflowEventArgs> WorkflowStarted;
member this.WorkflowStarted : EventHandler<System.Workflow.Runtime.WorkflowEventArgs>
Public Custom Event WorkflowStarted As EventHandler(Of WorkflowEventArgs)
Public Event WorkflowStarted As EventHandler(Of WorkflowEventArgs)
L'exemple de code suivant montre comment utiliser les fonctionnalités WorkflowRuntime d'un hôte de workflow. Le code associe l'événement WorkflowStarted à un gestionnaire d'événements, méthode qui est nommée OnWorkflowStarted
.
Cet exemple de code fait partie de l’exemple de communication de l’hôte.
workflowRuntime.WorkflowStarted += OnWorkflowStarted;
Le moteur d'exécution de workflow déclenche l'événement WorkflowStarted après que l'instance de workflow a été démarrée en planifiant l'activité racine à des fins d'exécution. Pour cet événement, l'expéditeur contient l'objet WorkflowRuntime et l'objet WorkflowEventArgs contient l'objet WorkflowInstance associé à l'événement.
Pour plus d’informations sur la gestion des événements, consultez Gestion et déclenchement d’événements.
Produit | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :