SP.ContentType.update(updateChildren) Method

Applies to: SharePoint Foundation 2010

Updates the content type definition that is stored in the database and, optionally, updates all content types that inherit from the content type.

SP.ContentType.update(updateChildren);

Parameters

  • updateChildren
    true to update content types that inherit from the content type; otherwise, false.

Type: Boolean

Applies To

SP.ContentType Class

Exceptions

  • [Microsoft.SharePoint.SPCotnentTypeReadOnlyException]
    The content type is read only or updateChildren is true and one of the child objects of the content type is read only. Error code: -2146232832.
  • [Microsoft.SharePoint.CoSPntentTypeSealedExcpteion]
    updateChildren is true and one of the child objects of the content type is a sealed content type. Error code: -2146232832.
  • [Microsoft.SharePoint.SPException]
    Collection is read only or updateChildren is true and there are no child objects of the content type. Error code: -2146232832.

See Also

Reference

SP.ContentType Methods

SP.ContentType Properties

SP Namespace