共用方式為


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

Syntax

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

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

Parameters

Remarks

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

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace