SequentialWorkflowActivity.Completed Event

 

Occurs when the workflow has finished.

Namespace:   System.Workflow.Activities
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)

public event EventHandler Completed

The following code example shows how to create a new SequentialWorkflowActivity class, and set the event handler for the Completed event. This code example is part of the Policy SDK Sample from the DiscountPolicyWorkflow.Designer.cs file. For more information, seeAdvanced Policy.

protected override void OnMethodInvoked(EventArgs e)
{
    base.OnMethodInvoked(e);
    Console.WriteLine("External Method Invoked.");
}

.NET Framework
Available since 3.0
Return to top
Show: