Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Updates the content type definition that is stored in the database and, optionally, updates all content types that inherit from the content type.
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Sub Update ( _
updateChildren As Boolean _
)
'Usage
Dim instance As ContentType
Dim updateChildren As Boolean
instance.Update(updateChildren)
[RemoteAttribute]
public void Update(
bool updateChildren
)
Parameters
updateChildren
Type: System.Booleantrue to update content types that inherit from the content type; otherwise, false.
Exceptions
| Exception | Condition |
|---|---|
| [Microsoft.SharePoint.SPContentTypeReadOnlyException] | 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.SPContentTypeSealedException] | 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. |