SPWorkflowManager.ModifyWorkflow Method

Modifies the specified workflow instance, as specified in the context data.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online


Public Sub ModifyWorkflow ( _
    workflow As SPWorkflow, _
    modification As SPWorkflowModification, _
    contextData As String _
Dim instance As SPWorkflowManager
Dim workflow As SPWorkflow
Dim modification As SPWorkflowModification
Dim contextData As String

instance.ModifyWorkflow(workflow, modification, _
public void ModifyWorkflow(
    SPWorkflow workflow,
    SPWorkflowModification modification,
    string contextData


  • contextData
    Type: System.String

    The context data for this modification.


This method modifies the workflow specified by the workflow parameter with the modifications specified by the contextData parameter.

For more information on workflow modifications and modification forms, see Workflow Modification Forms (SharePoint Foundation).

See Also


SPWorkflowManager Class

SPWorkflowManager Members

Microsoft.SharePoint.Workflow Namespace

Other Resources

Workflows in SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation