This documentation is archived and is not being maintained.

WorkflowApplication.Cancel Method

Cancels the workflow instance.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Public method Cancel() Cancels the workflow instance.
Public method Cancel(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 OnCompleted() handle.

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