SPWorkflowManager.StartWorkflow - Méthode (SPListItem, SPWorkflowAssociation, String, Guid, SPWorkflowRunOptions)
Espace de noms : Microsoft.SharePoint.Workflow
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Function StartWorkflow ( _
item As SPListItem, _
association As SPWorkflowAssociation, _
eventData As String, _
correlationId As Guid, _
runOptions As SPWorkflowRunOptions _
) As SPWorkflow
'Utilisation
Dim instance As SPWorkflowManager
Dim item As SPListItem
Dim association As SPWorkflowAssociation
Dim eventData As String
Dim correlationId As Guid
Dim runOptions As SPWorkflowRunOptions
Dim returnValue As SPWorkflow
returnValue = instance.StartWorkflow(item, _
association, eventData, correlationId, _
runOptions)
public SPWorkflow StartWorkflow(
SPListItem item,
SPWorkflowAssociation association,
string eventData,
Guid correlationId,
SPWorkflowRunOptions runOptions
)
Paramètres
- item
Type : Microsoft.SharePoint.SPListItem
- association
Type : Microsoft.SharePoint.Workflow.SPWorkflowAssociation
- eventData
Type : System.String
- correlationId
Type : System.Guid
- runOptions
Type : Microsoft.SharePoint.Workflow.SPWorkflowRunOptions
Valeur renvoyée
Type : Microsoft.SharePoint.Workflow.SPWorkflow