This topic has not yet been rated - Rate this topic

SPWorkflowAssociation.SetTaskList Method

Specifies the task list on which to create workflow tasks for this workflow association.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public void SetTaskList(
	SPList list
)

Parameters

list
Type: Microsoft.SharePoint.SPList
The task list on which to create workflow tasks.
Exception Condition
ArgumentNullException

The list parameter is null.

ArgumentException

The template of the list is not SPListTemplateType.Tasks

- or -

The task list and the history list of the association are not in the same web.

If the workflow template requires no task list, this method does nothing and returns; otherwise, this method sets the task list on which to create workflow tasks for this workflow association.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ