SPContentType.UpdateWorkflowAssociationsOnChildren Method (Boolean, Boolean, Boolean)

Propagates changes in this content type’s workflow associations to content types that are derived from this content type, or to instances of this content type that have been applied to lists, or to both. Optionally flags objects touched by the operation as changed.

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

Syntax

'Declaration
Public Sub UpdateWorkflowAssociationsOnChildren ( _
    bGenerateFullChangeList As Boolean, _
    bPushdownDerivedCT As Boolean, _
    bPushdownListCTs As Boolean _
)
'Usage
Dim instance As SPContentType
Dim bGenerateFullChangeList As Boolean
Dim bPushdownDerivedCT As Boolean
Dim bPushdownListCTs As Boolean

instance.UpdateWorkflowAssociationsOnChildren(bGenerateFullChangeList, _
    bPushdownDerivedCT, bPushdownListCTs)
public void UpdateWorkflowAssociationsOnChildren(
    bool bGenerateFullChangeList,
    bool bPushdownDerivedCT,
    bool bPushdownListCTs
)

Parameters

  • bGenerateFullChangeList
    Type: System.Boolean

    true to mark all SPContentType objects touched by this operation as changed; otherwise, false.

  • bPushdownDerivedCT
    Type: System.Boolean

    true to propagate changes to content types derived from this content type; otherwise false.

  • bPushdownListCTs
    Type: System.Boolean

    true to propagate changes to list content types based on this content type; otherwise false.

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 calls UpdateWorkflowAssociationsOnChildren(Boolean, Boolean, Boolean, Boolean) with bGenerateFullChangeList, bPushdownDerivedCT, bPushdownListCTs, and false.

Use this method to optionally propagate changes in the parent content type’s workflow associations down to either derived or list versions of the content type, or both. If you pass false as the argument to the bGenerateFullChangeList parameter, SPContentType objects touched by this operation are not flagged as changed and OnChanged events are not raised. An exception is thrown if the changes cannot be written to any child 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 SharePoint Foundation

Workflow Stages