다음을 통해 공유


SPWorkflowAssociation.SetHistoryList Method

Specifies the list to which to log workflow history events for this workflow association.

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

Syntax

'Declaration
Public Sub SetHistoryList ( _
    list As SPList _
)
'Usage
Dim instance As SPWorkflowAssociation
Dim list As SPList

instance.SetHistoryList(list)
public void SetHistoryList(
    SPList list
)

Parameters

Exceptions

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.

Remarks

If the workflow template does not require a history list, this method does nothing and returns; otherwise, this method sets the history list to which to log workflow history events for this workflow association.

See Also

Reference

SPWorkflowAssociation Class

SPWorkflowAssociation Members

Microsoft.SharePoint.Workflow Namespace

Other Resources

Workflows in SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation