다음을 통해 공유


ContentType.Update Method

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.Boolean

    true 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.

See Also

Reference

ContentType Class

ContentType Members

Microsoft.SharePoint.Client Namespace