Share via


WorkflowInstanceService.EnumerateInstancesForListItem method (Guid, Int32)

Retrieves all instances of the specified list item.

Namespace:  Microsoft.SharePoint.WorkflowServices
Assembly:  Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)

Syntax

'Declaration
<ClientCallableMethodAttribute> _
Public MustOverride Function EnumerateInstancesForListItem ( _
    listId As Guid, _
    itemId As Integer _
) As WorkflowInstanceCollection
'Usage
Dim instance As WorkflowInstanceService
Dim listId As Guid
Dim itemId As Integer
Dim returnValue As WorkflowInstanceCollection

returnValue = instance.EnumerateInstancesForListItem(listId, _
    itemId)
[ClientCallableMethodAttribute]
public abstract WorkflowInstanceCollection EnumerateInstancesForListItem(
    Guid listId,
    int itemId
)

Parameters

  • listId
    Type: System.Guid

    The id of the list to which the specified list item belongs.

  • itemId
    Type: System.Int32

    The id of the list item for which to return the instances.

Return value

Type: Microsoft.SharePoint.WorkflowServices.WorkflowInstanceCollection
Returns the specified workflow instance collection.

See also

Reference

WorkflowInstanceService class

WorkflowInstanceService members

EnumerateInstancesForListItem overload

Microsoft.SharePoint.WorkflowServices namespace