Partilhar via


SPContentType.UpdateWorkflowAssociation Method

NOTE: This API is now obsolete.

Use the WorkflowAssociations.Update method.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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

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.

See Also

Reference

SPContentType Class

SPContentType Members

Microsoft.SharePoint Namespace

WorkflowAssociations