SPField.Sealed 属性

获取一个值,指示Microsoft SharePoint Foundation (按照Type属性中指定) 的字段类型是否可以为派生的自定义字段类型的父对象。

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

语法

声明
Public Property Sealed As Boolean
    Get
    Set
用法
Dim instance As SPField
Dim value As Boolean

value = instance.Sealed

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

属性值

类型:System.Boolean
true无法将该字段的父对象派生的 SharePoint 字段类型 ; 如果否则为false。

异常

异常 条件
InvalidOperationException

尝试将值分配给 SharePoint 中内置字段类型。true/false的此类字段的值必须保留在其出厂设置。

NotSupportedException

An attempt is made to assign false when the SharePoint field is an external data column. (For more information about external data columns, see Where Can You Show External Data?.)

备注

此属性是有关已密封SPField类中或其,派生的任何类。

另请参阅

引用

SPField 类

SPField 成员

Microsoft.SharePoint 命名空间