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 命名空间