Share via


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)

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

  • userId
    Type: System.Int32

    The member ID of a user whose credentials will provide the security context for the event.

  • workflowId
    Type: System.Guid

    The workflow ID assigned to the workflow instance by the workflow engine.

  • eventType
    Type: System.Type

    The data type of the workflow event.

  • eventData
    Type: []

    Additional information about the event.

See also

Reference

SPWorkflowExternalDataExchangeService class

SPWorkflowExternalDataExchangeService members

RaiseEvent overload

Microsoft.SharePoint.Workflow namespace

ID

InstanceId