SPContentType.UpdateWorkflowAssociation method
NOTE: This API is now obsolete.
Use the WorkflowAssociations.Update method.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ObsoleteAttribute("Use WorkflowAssociations.Update() instead")> _
Public Sub UpdateWorkflowAssociation ( _
workflowAssociation As SPWorkflowAssociation _
)
'Usage
Dim instance As SPContentType
Dim workflowAssociation As SPWorkflowAssociation
instance.UpdateWorkflowAssociation(workflowAssociation)
[ObsoleteAttribute("Use WorkflowAssociations.Update() instead")]
public void UpdateWorkflowAssociation(
SPWorkflowAssociation workflowAssociation
)
Parameters
workflowAssociation
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociationThe workflow association that has been updated.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The SPWorkflowAssociation object is a null reference (Nothing in Visual Basic). |
Remarks
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.