Condividi tramite


SPWorkflowManager.GetItemTasks Method (SPListItem)

Returns a collection of workflow tasks for the specified list item.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function GetItemTasks ( _
    item As SPListItem _
) As SPWorkflowTaskCollection
'Usage
Dim instance As SPWorkflowManager
Dim item As SPListItem
Dim returnValue As SPWorkflowTaskCollection

returnValue = instance.GetItemTasks(item)
public SPWorkflowTaskCollection GetItemTasks(
    SPListItem item
)

Parameters

Return Value

Type: Microsoft.SharePoint.Workflow.SPWorkflowTaskCollection
An SPWorkflowTaskCollection object that represents the workflow tasks for the item.

Remarks

This method gets the workflow tasks for the list item specified by the item parameter.

See Also

Reference

SPWorkflowManager Class

SPWorkflowManager Members

GetItemTasks Overload

Microsoft.SharePoint.Workflow Namespace

Other Resources

Workflows in SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation