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)

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

  • forceUtilityListCreation
    Type: System.Boolean

    true 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

SPWorkflowAssociationCollection members

Microsoft.SharePoint.Workflow namespace