SPWorkflowExternalDataExchangeService.CallEventHandler Method
When overridden in a derived class, calls the specified workflow event handler when an event is raised.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public MustOverride Sub CallEventHandler ( _
eventType As Type, _
eventName As String, _
eventData As Object(), _
workflow As SPWorkflow, _
identity As String, _
workHandler As IPendingWork, _
workItem As Object _
)
'Usage
Dim instance As SPWorkflowExternalDataExchangeService
Dim eventType As Type
Dim eventName As String
Dim eventData As Object()
Dim workflow As SPWorkflow
Dim identity As String
Dim workHandler As IPendingWork
Dim workItem As Object
instance.CallEventHandler(eventType, _
eventName, eventData, workflow, identity, _
workHandler, workItem)
public abstract void CallEventHandler(
Type eventType,
string eventName,
Object[] eventData,
SPWorkflow workflow,
string identity,
IPendingWork workHandler,
Object workItem
)
Parameters
eventType
Type: System.TypeThe type of the raised event.
eventName
Type: System.StringThe name of the raised event.
eventData
Type: []The data to be passed to the event handler.
workflow
Type: Microsoft.SharePoint.Workflow.SPWorkflowThe running workflow that will handle the event.
identity
Type: System.StringThe ID of the user who is raising the event.
workHandler
Type: System.Workflow.Runtime.IPendingWorkThe object which allows the external code that is raising the event to participate in a work batch.
workItem
Type: System.ObjectThe object that contains the external code that raises the event.
Remarks
This method should be implemented in derived classes to call the workflow event handlers according to the specified eventType.
See Also
Reference
SPWorkflowExternalDataExchangeService Class