SPWorkflowManager.CancelWorkflow method

Cancels the specified workflow instance.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Sub CancelWorkflow ( _
    workflow As SPWorkflow _
)
'Usage
Dim workflow As SPWorkflowSPWorkflowManager.CancelWorkflow(workflow)
public static void CancelWorkflow(
    SPWorkflow workflow
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The workflow to cancel belongs to an SPWeb object that has been deleted.

Remarks

This method cancels the workflow specified by the workflow parameter.

See also

Reference

SPWorkflowManager class

SPWorkflowManager members

Microsoft.SharePoint.Workflow namespace

Other resources

Workflows in Windows SharePoint Services

Workflow Development for Windows SharePoint Services

Workflow Object Model in Windows SharePoint Services Overview