Share via


ISharePointService.LogToHistoryList method

Writes the specified information to the history list for the workflow.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Sub LogToHistoryList ( _
    workflowId As Guid, _
    eventId As SPWorkflowHistoryEventType, _
    userId As Integer, _
    duration As TimeSpan, _
    outcome As String, _
    description As String, _
    otherData As String _
)
'Usage
Dim instance As ISharePointService
Dim workflowId As Guid
Dim eventId As SPWorkflowHistoryEventType
Dim userId As Integer
Dim duration As TimeSpan
Dim outcome As String
Dim description As String
Dim otherData As String

instance.LogToHistoryList(workflowId, _
    eventId, userId, duration, outcome, _
    description, otherData)
void LogToHistoryList(
    Guid workflowId,
    SPWorkflowHistoryEventType eventId,
    int userId,
    TimeSpan duration,
    string outcome,
    string description,
    string otherData
)

Parameters

  • workflowId
    Type: System.Guid

    The ID of the workflow instance this history list entry concerns.

  • userId
    Type: System.Int32

    The user ID associated with the history list entry.

  • description
    Type: System.String

    The description of the workflow event.

  • otherData
    Type: System.String

    Any other data to be included in this history list entry.

Remarks

This method is used by the LogToHistoryListActivity class of the Microsoft.SharePoint.WorkflowActions namespace.

See also

Reference

ISharePointService interface

ISharePointService members

Microsoft.SharePoint.Workflow namespace