Activity.Cancel Method
.NET Framework 3.0
Called by the workflow runtime to cancel execution of an activity that is currently executing.
Namespace: System.Workflow.ComponentModel
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)
protected internal virtual ActivityExecutionStatus Cancel ( ActivityExecutionContext executionContext )
protected ActivityExecutionStatus Cancel ( ActivityExecutionContext executionContext )
protected internal function Cancel ( executionContext : ActivityExecutionContext ) : ActivityExecutionStatus
Not applicable.
Parameters
- executionContext
The ActivityExecutionContext containing the instance to cancel.
Return Value
The status at the end of the operation, which determines whether the activity remains in the canceling state, or transitions to the closed state.Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.