ערוך

שתף באמצעות


WorkflowRuntime.WorkflowStarted Event

Definition

Occurs when a workflow instance has been started.

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) 

Event Type

Examples

The following code example demonstrates how to use WorkflowRuntime functionality from a workflow host. The code associates the WorkflowStarted with an event handler, a method named OnWorkflowStarted.

This code example is part of the Host Communication Sample.

workflowRuntime.WorkflowStarted += OnWorkflowStarted;

Remarks

The workflow run-time engine raises the WorkflowStarted event after the workflow instance is started by scheduling the root activity for execution. For this event, the sender contains the WorkflowRuntime and WorkflowEventArgs contains the WorkflowInstance associated with the event.

For more information about handling events, see Handling and raising events.

Applies to