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)
Available in Sandboxed Solutions: No


<ObsoleteAttribute("Use WorkflowAssociations.Remove() instead")> _
Public Sub RemoveWorkflowAssociation ( _
    workflowAssociation As SPWorkflowAssociation _
Dim instance As SPList
Dim workflowAssociation As SPWorkflowAssociation

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



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.

See Also


SPList Class

SPList Members

Microsoft.SharePoint Namespace