SPWorkflowManager.GetItemWorkflows Method (SPListItem, SPWorkflowFilter)
Returns a filtered collection of all the workflow instances that have ever run on the specified list item.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
- Type: Microsoft.SharePoint.SPListItem
The list item on which the workflows are or were running.
- Type: Microsoft.SharePoint.Workflow.SPWorkflowFilter
The filter criteria to apply to the workflow collection, such as to whom the workflow is assigned, and the workflow state.
Return ValueType: Microsoft.SharePoint.Workflow.SPWorkflowCollection
An SPWorkflowCollection object that represents the collection of workflow instances.