SPWorkflowManager.StartWorkflow method (SPListItem, SPWorkflowAssociation, String, Guid, SPWorkflowRunOptions)
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Function StartWorkflow ( _
item As SPListItem, _
association As SPWorkflowAssociation, _
eventData As String, _
correlationId As Guid, _
runOptions As SPWorkflowRunOptions _
) As SPWorkflow
'Uso
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
)
Parâmetros
- 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
Valor retornado
Type: Microsoft.SharePoint.Workflow.SPWorkflow