SPWorkflowTaskCollection Constructor (SPWorkflowCollection, SPWorkflowFilter)
Initializes a new instance of the SPWorkflowTaskCollection class, based upon which tasks in this collection will be created by one of the workflows in the provided collection and what criteria for workflows or tasks in this collection is specified.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub New ( _
workflows As SPWorkflowCollection, _
filter As SPWorkflowFilter _
)
'Usage
Dim workflows As SPWorkflowCollection
Dim filter As SPWorkflowFilter
Dim instance As New SPWorkflowTaskCollection(workflows, _
filter)
public SPWorkflowTaskCollection(
SPWorkflowCollection workflows,
SPWorkflowFilter filter
)
Parameters
workflows
Type: Microsoft.SharePoint.Workflow.SPWorkflowCollectionAn SPWorkflowCollection. All tasks in this collection will be created by one of the workflows in this collection.
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