SPWorkflowTaskCollection constructor (SPListItem, SPWorkflowFilter)
Initializes a new instance of the SPWorkflowTaskCollection class that contains tasks created by workflows running on a list item and a filter criteria, based on workflows or a list item and a filter criteria.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
item As SPListItem, _
filter As SPWorkflowFilter _
)
'Usage
Dim item As SPListItem
Dim filter As SPWorkflowFilter
Dim instance As New SPWorkflowTaskCollection(item, filter)
public SPWorkflowTaskCollection(
SPListItem item,
SPWorkflowFilter filter
)
Parameters
item
Type: Microsoft.SharePoint.SPListItemAn SPListItem on which workflows are running. All tasks in this collection are created by workflows running on this item.
filter
Type: Microsoft.SharePoint.Workflow.SPWorkflowFilterAn SPWorkflowFilter used to specify criteria for workflows or tasks in this collection.
Remarks
Returns a collection of SPWorkflowTask objects.
See also
Reference
SPWorkflowTaskCollection class
SPWorkflowTaskCollection members