SPContentType.UpdateIncludingSealedAndReadOnly 方法
将更改提交到内容类型到数据库并将更改应用于所有派生的内容类型,包括内容类型的密封或只读的。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub UpdateIncludingSealedAndReadOnly ( _
updateChildren As Boolean _
)
用法
Dim instance As SPContentType
Dim updateChildren As Boolean
instance.UpdateIncludingSealedAndReadOnly(updateChildren)
public void UpdateIncludingSealedAndReadOnly(
bool updateChildren
)
参数
updateChildren
类型:System.Booleantrue将更改传播到派生的网站和列表内容类型 ;否则为false。
异常
异常 | 条件 |
---|---|
SPException | 包含此内容类型的集合是只读的。 AD 访问控制 指定此内容类型的集合不包含内容类型。 AD 访问控制 与内容类型关联SPList null 并且updateChildren设置为true。 |
备注
如果false作为参数传递,密封或只读的内容类型将被忽略,并且不会引发异常。