SPContentType.UpdateIncludingSealedAndReadOnly Method
Commits changes to the content type into the database and applies changes to all derived content types, including content types that are sealed or read-only.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub UpdateIncludingSealedAndReadOnly ( _
updateChildren As Boolean _
)
'Usage
Dim instance As SPContentType
Dim updateChildren As Boolean
instance.UpdateIncludingSealedAndReadOnly(updateChildren)
public void UpdateIncludingSealedAndReadOnly(
bool updateChildren
)
Parameters
updateChildren
Type: System.Booleantrue to propagate changes to derived site and list content types; otherwise, false.
Exceptions
Exception | Condition |
---|---|
SPException | The collection that contains this content type is read-only. -or- The collection specified for this content type does not contain the content type. -or- The SPList associated with the content type is null and the updateChildren is set to true. |
Remarks
If false is passed as an argument, then sealed or ready-only content types are ignored and do not cause exceptions.