Share via


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

Remarks

Returns a collection of SPWorkflowTask objects.

See also

Reference

SPWorkflowTaskCollection class

SPWorkflowTaskCollection members

SPWorkflowTaskCollection overload

Microsoft.SharePoint.Workflow namespace