Share via


SPWorkflowExternalDataExchangeService.RaiseEvent - Méthode (SPWeb, Int32, Guid, Type, String, Object[], SPWorkflowRunOptions)

Déclenche un événement de flux de travail en spécifiant l'utilisateur dont l'action généré l'événement et les options d'exécution du flux de travail.

Espace de noms :  Microsoft.SharePoint.Workflow
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
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 _
)
'Utilisation
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
)

Paramètres

  • userId
    Type : System.Int32

    L'ID de membre d'un utilisateur dont les références fournit le contexte de sécurité de l'événement.

  • workflowId
    Type : System.Guid

    L'ID de flux de travail affectée à l'instance de workflow par le moteur de flux de travail.

  • eventType
    Type : System.Type

    Le type de données de l'événement de workflow.

  • eventData
    Type : []

    Informations supplémentaires sur l'événement.

Voir aussi

Référence

SPWorkflowExternalDataExchangeService classe

SPWorkflowExternalDataExchangeService - Membres

RaiseEvent - Surcharge

Microsoft.SharePoint.Workflow - Espace de noms

ID

InstanceId