WorkflowApplication.Cancel Method

.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.

Cancels the workflow instance.

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

NameDescription
System_CAPS_pubmethodCancel()

Cancels the workflow instance.

System_CAPS_pubmethodCancel(TimeSpan)

Cancels the workflow instance using the specified time-out interval.

This method schedules the cancellation of the workflow instance. To be notified when the cancellation has completed, use the P:System.Activities.WorkflowApplication.OnCompleted handle.

By default, the cancel operation must complete in 30 seconds or a TimeoutException is thrown.

Return to top
Show: