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)
Available in Sandboxed Solutions: No
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.GuidThe ID of the workflow instance this history list entry concerns.
eventId
Type: Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventTypeThe event type of the history list entry.
userId
Type: System.Int32The user ID associated with the history list entry.
duration
Type: System.TimeSpanThe duration of the workflow event.
outcome
Type: System.StringThe outcome of the workflow event.
description
Type: System.StringThe description of the workflow event.
otherData
Type: System.StringAny 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.