SPContentType.RemoveWorkflowAssociation method
NOTE: This API is now obsolete.
Use the WorkflowAssociations.Remove method.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ObsoleteAttribute("Use WorkflowAssociations.Remove() instead")> _
Public Sub RemoveWorkflowAssociation ( _
workflowAssociation As SPWorkflowAssociation _
)
'Usage
Dim instance As SPContentType
Dim workflowAssociation As SPWorkflowAssociation
instance.RemoveWorkflowAssociation(workflowAssociation)
[ObsoleteAttribute("Use WorkflowAssociations.Remove() instead")]
public void RemoveWorkflowAssociation(
SPWorkflowAssociation workflowAssociation
)
Parameters
workflowAssociation
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociationThe workflow association to delete from the content type’s collection of workflow associations.