SPContentType.ReadOnly 属性

获取或设置是否的内容类型是只读的。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Property ReadOnly As Boolean
    Get
    Set
用法
Dim instance As SPContentType
Dim value As Boolean

value = instance.ReadOnly

instance.ReadOnly = value
public bool ReadOnly { get; set; }

属性值

类型:System.Boolean
true如果内容类型是只读的。否则为false。

备注

标记的内容类型以只读方式向用户发出警告它们不应更改到内容类型。用户必须然后显式设置的内容类型的只读属性为false对内容类型进行更改。

For more information, see Content Type Change Control.

If you define a content type as read-only, that can have ramifications when you make changes to its parent content type and then attempt to propagate those changes down through the hierarchy. For more information, see Updating Child Content Types.

另请参阅

引用

SPContentType 类

SPContentType 成员

Microsoft.SharePoint 命名空间

其他资源

Content Type Change Control

Updating Child Content Types

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy