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
workflow
Type: Microsoft.SharePoint.Workflow.SPWorkflowThe workflow instance to remove.
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
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