SPWorkflowManager.GetItemActiveWorkflows Method

Returns a collection of the workflow instances currently running on the specified list item.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public SPWorkflowCollection GetItemActiveWorkflows(
	SPListItem item


Type: Microsoft.SharePoint.SPListItem

The list item for which you want to return active workflow instances.

Return Value

Type: Microsoft.SharePoint.Workflow.SPWorkflowCollection
An SPWorkflowCollection object that represents the workflows running on the item.

This method gets the workflows running on the list item specified by the item parameter.