Export (0) Print
Expand All

WorkflowApplication.Cancel Method

.NET Framework 4.6 and 4.5

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.

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

© 2015 Microsoft