This documentation is archived and is not being maintained.

SPWorkflowManager.StartWorkflow Method (SPListItem, SPWorkflowAssociation, String)

Windows SharePoint Services 3

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)

Public Function StartWorkflow ( _
	item As SPListItem, _
	association As SPWorkflowAssociation, _
	eventData As String _
) As SPWorkflow
Dim instance As SPWorkflowManager
Dim item As SPListItem
Dim association As SPWorkflowAssociation
Dim eventData As String
Dim returnValue As SPWorkflow

returnValue = instance.StartWorkflow(item, _
	association, eventData)


Type: Microsoft.SharePoint.SPListItem
The list item on which to start the workflow instance.
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation
The workflow association on which to base the new workflow instance.
Type: System.String

Return Value

Type: Microsoft.SharePoint.Workflow.SPWorkflow
A SPWorkflow object that represents the new workflow instance.