Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPWorkflowManager.GetWorkflowTasks Method (SPListItem, SPWorkflow, SPWorkflowFilter)

Returns a filtered collection of the tasks belonging to the specified workflow instance.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public SPWorkflowTaskCollection GetWorkflowTasks(
	SPListItem item,
	SPWorkflow workflow,
	SPWorkflowFilter filter
)

Parameters

item
Type: Microsoft.SharePoint.SPListItem
The list item on which the workflow is running.
workflow
Type: Microsoft.SharePoint.Workflow.SPWorkflow
The workflow instance for which you want the task collection returned.
filter
Type: Microsoft.SharePoint.Workflow.SPWorkflowFilter
The filter criteria to apply the workflow task collection, such as to whom the workflow is assigned, and the workflow state.

Return Value

Type: Microsoft.SharePoint.Workflow.SPWorkflowTaskCollection
An SPWorkflowTaskCollection object that represents the collection of workflow tasks.

This method gets the workflow tasks associated with the workflow specified by the workflow parameter running on the list item specified by the item parameter that satisfy the criteria specified by the filter parameter.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.