SPField.Sealed property
取得一個值,指出Microsoft SharePoint Foundation欄位類型 (如Type屬性所指定) 是否可以擔任的父代為衍生的自訂欄位類型。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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; }
Property value
Type: System.Boolean
true如果無法衍生的 SharePoint 欄位類型 ; 的上層欄位。否則,請false。
Exceptions
Exception | Condition |
---|---|
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類別或衍生自,任何類別。