Share via


SPWorkflowExternalDataExchangeService.RaiseEvent method (SPWeb, Guid, Type, String, Object[])

Raises a workflow event.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Sub RaiseEvent ( _
    web As SPWeb, _
    workflowId As Guid, _
    eventType As Type, _
    eventName As String, _
    eventData As Object() _
)
'Usage
Dim web As SPWeb
Dim workflowId As Guid
Dim eventType As Type
Dim eventName As String
Dim eventData As Object()

SPWorkflowExternalDataExchangeService.RaiseEvent(web, workflowId, _
    eventType, eventName, eventData)
public static void RaiseEvent(
    SPWeb web,
    Guid workflowId,
    Type eventType,
    string eventName,
    Object[] eventData
)

Parameters

  • 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.

Remarks

This overload runs the workflow instance in the current user's security context and specifies SPWorkflowRunOptions.SynchronousAllowPostpone.

See also

Reference

SPWorkflowExternalDataExchangeService class

SPWorkflowExternalDataExchangeService members

RaiseEvent overload

Microsoft.SharePoint.Workflow namespace

ID

InstanceId