Public Sub CreateHistoryEvent ( _ eventId As Integer, _ groupId As Object, _ user As SPMember, _ outcome As String, _ description As String, _ otherData As String _ )
Dim instance As SPWorkflow Dim eventId As Integer Dim groupId As Object Dim user As SPMember Dim outcome As String Dim description As String Dim otherData As String instance.CreateHistoryEvent(eventId, groupId, user, outcome, description, otherData)
public void CreateHistoryEvent ( int eventId, Object groupId, SPMember user, string outcome, string description, string otherData )
The type of workflow event.
The ID of the group to which this workflow history event belongs.
The user who is responsible for the workflow history event.
A description of the workflow event, limited to 255 characters. This information is displayed on the workflow status page.
A longer description of the workflow event. This information is displayed on the workflow status page.
Any other data that should be captured concerning the workflow history event. This information is not displayed on the workflow status page.
The eventId parameter takes an enumerated type, based on the SPWorkflowHistoryEventType enumeration.
This thread in the forums has an example of calling this method:
http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/5bf81995-c32e-446d-b35e-992066dfd040
--Michael Blumenthal
http://blumenthalit.net/