SPWorkflowManager.GetItemWorkflows method (SPListItem)

Returns a collection of all the workflow instances that have ever run on the specified list item.

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

Syntax

'Declaration
Public Function GetItemWorkflows ( _
    item As SPListItem _
) As SPWorkflowCollection
'Usage
Dim instance As SPWorkflowManager
Dim item As SPListItem
Dim returnValue As SPWorkflowCollection

returnValue = instance.GetItemWorkflows(item)
public SPWorkflowCollection GetItemWorkflows(
    SPListItem item
)

Parameters

Return value

Type: Microsoft.SharePoint.Workflow.SPWorkflowCollection
An SPWorkflowCollection object that represents the collection of workflow instances.

Remarks

This method gets the workflows that are associated with the list item specified by the item parameter.

See also

Reference

SPWorkflowManager class

SPWorkflowManager members

GetItemWorkflows overload

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