WorkflowApplication.Unloaded Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the Action(Of T) that is invoked when the current workflow unloads.

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

Public Property Unloaded As Action(Of WorkflowApplicationEventArgs)

Property Value

Type: System.Action(Of WorkflowApplicationEventArgs)

An action that is invoked when a workflow instance is unloaded.

The following code example inspects the WorkflowApplicationEventArgs passed into the Unloaded handler of a WorkflowApplication instance and displays the InstanceId of the workflow that was unloaded.

wfApp.Unloaded = delegate(WorkflowApplicationEventArgs e)
{
    Console.WriteLine("Workflow {0} unloaded.", e.InstanceId);
};

.NET Framework
Available since 4.0
Return to top
Show: