Share via


SPWorkflowManager.RemoveWorkflowFromListItem method

Removes the specified workflow instance from the list item to which it was attached.

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

Syntax

'Declaration
Public Sub RemoveWorkflowFromListItem ( _
    workflow As SPWorkflow _
)
'Usage
Dim instance As SPWorkflowManager
Dim workflow As SPWorkflow

instance.RemoveWorkflowFromListItem(workflow)
public void RemoveWorkflowFromListItem(
    SPWorkflow workflow
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

workflow is null .

Remarks

Removing a workflow instance deletes it entirely. The workflow instance does not remain as a canceled workflow.

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