SPContentType.UpdateWorkflowAssociationsOnChildren method (Boolean)
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. Optionally flags objects touched by the operation as changed.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub UpdateWorkflowAssociationsOnChildren ( _
bGenerateFullChangeList As Boolean _
)
'Usage
Dim instance As SPContentType
Dim bGenerateFullChangeList As Boolean
instance.UpdateWorkflowAssociationsOnChildren(bGenerateFullChangeList)
public void UpdateWorkflowAssociationsOnChildren(
bool bGenerateFullChangeList
)
Parameters
bGenerateFullChangeList
Type: System.Booleantrue to mark all SPContentType objects touched by this operation as changed; 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, true, true, and true.
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. 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 content type because it is marked as sealed or read-only.
See also
Reference
UpdateWorkflowAssociationsOnChildren overload
Microsoft.SharePoint namespace