SequentialWorkflowActivity.Completed Event

Definition

Occurs when the workflow has finished.

public event EventHandler Completed;

Event Type

Examples

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, see Advanced Policy.

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

Applies to

Product 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