SPWorkflowAssociation.SetHistoryList Method
Specifies the list to which to log workflow history events for this workflow association.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- list
- Type: Microsoft.SharePoint.SPList
The list to which to log workflow history events.
| Exception | Condition |
|---|---|
| ArgumentNullException |
list is null. |
| ArgumentException |
The template property of the list parameter is not SPListTemplateType.WorkflowHistory. - or - The task list and the history list of the association are not in the same website. |