Edit

Share via


SequentialWorkflowActivity.Completed Event

Definition

Occurs when the workflow has finished.

public:
 event EventHandler ^ Completed;
public event EventHandler Completed;
member this.Completed : EventHandler 
Public Custom Event Completed As EventHandler 

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.");
}
Protected Overrides Sub OnMethodInvoked(ByVal e As EventArgs)
    MyBase.OnMethodInvoked(e)
    Console.WriteLine("External Method Invoked.")
End Sub

Applies to