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
Syntax
'Declaration
Public Sub ModifyWorkflow ( _
workflow As SPWorkflow, _
modification As SPWorkflowModification, _
contextData As String _
)
'Usage
Dim instance As SPWorkflowManager
Dim workflow As SPWorkflow
Dim modification As SPWorkflowModification
Dim contextData As String
instance.ModifyWorkflow(workflow, modification, _
contextData)
public void ModifyWorkflow(
SPWorkflow workflow,
SPWorkflowModification modification,
string contextData
)
Parameters
workflow
Type: Microsoft.SharePoint.Workflow.SPWorkflowThe workflow instance to modify.
modification
Type: Microsoft.SharePoint.Workflow.SPWorkflowModificationThe workflow modification.
contextData
Type: System.StringThe context data for this modification.
Remarks
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
Reference
Microsoft.SharePoint.Workflow Namespace
Other Resources
Workflows in SharePoint Foundation