UpdateWorkflowAssociation method

SPContentType.UpdateWorkflowAssociation method

NOTE: This API is now obsolete.

Use the WorkflowAssociations.Update method.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

[ObsoleteAttribute("Use WorkflowAssociations.Update() instead")]
public void UpdateWorkflowAssociation(
	SPWorkflowAssociation workflowAssociation


Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation

The workflow association that has been updated.


The SPWorkflowAssociation object is a null reference (Nothing in Visual Basic).

If the workflow association that you are updating does not exist in the content type’s collection, this method does nothing. You can test for an association’s existence by calling the GetAssociationByNamemethod. If the return value of that method is a null reference (Nothing in Visual Basic), then the association is not in the collection.

© 2016 Microsoft