Share via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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

SPWorkflowAssociationCollection Members

Microsoft.SharePoint.Workflow Namespace