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
web
Type : Microsoft.SharePoint.SPWebLe site Web où est enregistré le flux de travail.
userId
Type : System.Int32L'ID de membre d'un utilisateur dont les références fournit le contexte de sécurité de l'événement.
workflowId
Type : System.GuidL'ID de flux de travail affectée à l'instance de workflow par le moteur de flux de travail.
eventType
Type : System.TypeLe type de données de l'événement de workflow.
eventName
Type : System.StringLe nom de l'événement.
eventData
Type : []Informations supplémentaires sur l'événement.
runOptions
Type : Microsoft.SharePoint.Workflow.SPWorkflowRunOptionsValeur d'énumération qui spécifie si l'instance de workflow doit être exécutée de façon synchrone ou asynchrone.
Voir aussi
Référence
SPWorkflowExternalDataExchangeService classe
SPWorkflowExternalDataExchangeService - Membres