Export (0) Print
Expand All

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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public void RemoveWorkflowFromListItem(
	SPWorkflow workflow
)

Parameters

workflow
Type: Microsoft.SharePoint.Workflow.SPWorkflow

The workflow instance to remove.

ExceptionCondition
ArgumentNullException

workflow is null .

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

Show:
© 2014 Microsoft