SPList.RemoveWorkflowAssociation method

NOTE: This API is now obsolete.

Removes the specified workflow association from the list.

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

[ObsoleteAttribute("Use WorkflowAssociations.Remove() instead")]
public void RemoveWorkflowAssociation(
	SPWorkflowAssociation workflowAssociation


Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation

The workflow association to remove.

The WorkflowAssociations property returns an SPWorkflowAssociationCollection object with the list’s collection of workflow associations. You can retrieve an association from the collection by using the value of the Id property as an indexer or by passing the workflow association’s name to the GetAssociationByName method.