This documentation is archived and is not being maintained.

SPWorkflowManager.GetWorkflowTasks Method (SPListItem, Guid)

Windows SharePoint Services 3

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

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPWorkflowTaskCollection GetWorkflowTasks(
	SPListItem item,
	Guid workflowInstanceId


Type: Microsoft.SharePoint.SPListItem
The list item on which the workflow is running.
Type: System.Guid
The ID of the workflow instance for which you want the task collection returned.

Return Value

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