Condividi tramite


SPWorkflowManager.GetItemWorkflows Method (SPListItem, SPWorkflowFilter)

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

Syntax

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

returnValue = instance.GetItemWorkflows(item, _
    filter)
public SPWorkflowCollection GetItemWorkflows(
    SPListItem item,
    SPWorkflowFilter filter
)

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 that satisfy the criteria specified by the filter parameter.

See Also

Reference

SPWorkflowManager Class

SPWorkflowManager Members

GetItemWorkflows Overload

Microsoft.SharePoint.Workflow Namespace

Other Resources

Workflows in SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation