SPWorkflowAssociationCollection.UpdateAssociationsToLatestVersion method
Updates all workflow associations to the latest version of the workflows.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function UpdateAssociationsToLatestVersion As Boolean
'Usage
Dim instance As SPWorkflowAssociationCollection
Dim returnValue As Boolean
returnValue = instance.UpdateAssociationsToLatestVersion()
public bool UpdateAssociationsToLatestVersion()
Return value
Type: System.Boolean
True if any update is made; otherwise, false.
Remarks
This method returns False if user-defined workflows are not enabled.
See also
Reference
SPWorkflowAssociationCollection class