SPWorkflowAssociationCollection.SetUtilityLists Method
Specifies the task list and history list for the specified SPWorkflowAssociation.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Friend Sub SetUtilityLists ( _
wa As SPWorkflowAssociation, _
forceUtilityListCreation As Boolean _
)
'Usage
Dim wa As SPWorkflowAssociation
Dim forceUtilityListCreation As Boolean
Me.SetUtilityLists(wa, forceUtilityListCreation)
protected internal void SetUtilityLists(
SPWorkflowAssociation wa,
bool forceUtilityListCreation
)
Parameters
wa
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociationThe workflow association whose tasks list and history list are to be set.
forceUtilityListCreation
Type: System.Booleantrue to create the tasks list and history list if they do not exist; otherwise, false.
Remarks
This method specifies the task list on which workflow tasks are created and the history list on which workflow history events are logged for the wa.
See Also
Reference
SPWorkflowAssociationCollection Class