Поделиться через


Метод ContentType.Update

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

Пространство имен:  Microsoft.SharePoint.Client
Сборки:   Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)

Синтаксис

'Декларация
Public Sub Update ( _
    updateChildren As Boolean _
)
'Применение
Dim instance As ContentType
Dim updateChildren As Boolean

instance.Update(updateChildren)
public void Update(
    bool updateChildren
)

Параметры

  • updateChildren
    Тип: System.Boolean

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

Исключения

Исключение Условие
[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.

См. также

Справочные материалы

ContentType класс

Элементы ContentType

Пространство имен Microsoft.SharePoint.Client