SPListItem.Tasks Property

Gets the collection of workflow tasks for the item.

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

Syntax

'Declaration
Public ReadOnly Property Tasks As SPWorkflowTaskCollection
    Get
'Usage
Dim instance As SPListItem
Dim value As SPWorkflowTaskCollection

value = instance.Tasks
public SPWorkflowTaskCollection Tasks { get; }

Property Value

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

See Also

Reference

SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace