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

Return Value

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

See Also

Reference

SPWorkflowManager Class

SPWorkflowManager Members

StartWorkflow Overload

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