Export (0) Print
Expand All

WorkflowApplication::Unloaded Property

.NET Framework 4.6 and 4.5

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

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

property Action<WorkflowApplicationEventArgs^>^ Unloaded {
	Action<WorkflowApplicationEventArgs^>^ get ();
	void set (Action<WorkflowApplicationEventArgs^>^ value);

Property Value

Type: System::Action<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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft