WorkflowRuntime.WorkflowStarted Événement

Définition

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) 

Type d'événement

Exemples

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;

Remarques

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.

S’applique à