WorkflowApplication.Unloaded Property

Definition

Gets or sets the Action<T> that is invoked when the current workflow unloads.

C#
public Action<System.Activities.WorkflowApplicationEventArgs> Unloaded { get; set; }

Property Value

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

Examples

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.

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

Applies to

Product Versions
.NET Framework 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