SPWorkflowExternalDataExchangeService.RaiseEvent Method (SPWeb, Int32, Guid, Type, String, Object , SPWorkflowRunOptions)
Raises a workflow event by specifying the user whose action generated the event and options for running the workflow.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Sub RaiseEvent ( _
web As SPWeb, _
userId As Integer, _
workflowId As Guid, _
eventType As Type, _
eventName As String, _
eventData As Object(), _
runOptions As SPWorkflowRunOptions _
)
'Usage
Dim web As SPWeb
Dim userId As Integer
Dim workflowId As Guid
Dim eventType As Type
Dim eventName As String
Dim eventData As Object()
Dim runOptions As SPWorkflowRunOptionsSPWorkflowExternalDataExchangeService.RaiseEvent(web, userId, workflowId, _
eventType, eventName, eventData, _
runOptions)
public static void RaiseEvent(
SPWeb web,
int userId,
Guid workflowId,
Type eventType,
string eventName,
Object[] eventData,
SPWorkflowRunOptions runOptions
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe website where the workflow is registered.
userId
Type: System.Int32The member ID of a user whose credentials will provide the security context for the event.
workflowId
Type: System.GuidThe workflow ID assigned to the workflow instance by the workflow engine.
eventType
Type: System.TypeThe data type of the workflow event.
eventName
Type: System.StringThe name of the event.
eventData
Type: []Additional information about the event.
runOptions
Type: Microsoft.SharePoint.Workflow.SPWorkflowRunOptionsAn enumeration value that specifies whether the workflow instance should run synchronously or asynchronously.
See Also
Reference
SPWorkflowExternalDataExchangeService Class
SPWorkflowExternalDataExchangeService Members