SPWorkflowManager.StartWorkflow Method (SPListItem, SPWorkflowAssociation, String, Boolean)
Creates and starts a new workflow instance, based on the specified workflow association, on the specified list item.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
Public Function StartWorkflow ( _
item As SPListItem, _
association As SPWorkflowAssociation, _
eventData As String, _
isAutoStart As Boolean _
) As SPWorkflow
Dim instance As SPWorkflowManager
Dim item As SPListItem
Dim association As SPWorkflowAssociation
Dim eventData As String
Dim isAutoStart As Boolean
Dim returnValue As SPWorkflow
returnValue = instance.StartWorkflow(item, _
association, eventData, isAutoStart)
public SPWorkflow StartWorkflow(
SPListItem item,
SPWorkflowAssociation association,
string eventData,
bool isAutoStart
)
Parameters
- item
Type: Microsoft.SharePoint.SPListItem
The list item on which to start the workflow instance.
- association
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation
The workflow association on which to base the new workflow instance.
- eventData
Type: System.String
- isAutoStart
Type: System.Boolean
Return Value
Type: Microsoft.SharePoint.Workflow.SPWorkflow
A SPWorkflow object that represents the new workflow instance.
See Also
Reference
Microsoft.SharePoint.Workflow Namespace
Other Resources
Workflows in Windows SharePoint Services
Workflow Development for Windows SharePoint Services
Workflow Object Model in Windows SharePoint Services Overview