SPContentType.UpdateWorkflowAssociationsOnChildren method

Propagates changes in this content type’s workflow associations to content types that are derived from this content type and also to instances of this content type that have been applied to lists.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub UpdateWorkflowAssociationsOnChildren
'Usage
Dim instance As SPContentType

instance.UpdateWorkflowAssociationsOnChildren()
public void UpdateWorkflowAssociationsOnChildren()

Exceptions

Exception Condition
SPContentTypeSealedException

The Sealed property of a child of this content type has a value of true.

SPContentTypeReadOnlyException

The ReadOnly property of a child of this content type has a value of true.

Remarks

This method propagates changes in the parent content type’s workflow associations down to all derived and list versions of the content type that can be found within the content type’s scope. All SPContentType objects touched by this operation are flagged as changed. An exception is thrown if the changes cannot be written to any child content type because it is marked as sealed or read-only.

See also

Reference

SPContentType class

SPContentType members

UpdateWorkflowAssociationsOnChildren overload

Microsoft.SharePoint namespace

AddWorkflowAssociation

Other resources

Introduction to Workflows in Windows SharePoint Services

Workflow Stages