SPField.Sealed property

Gets a value that indicates whether Microsoft SharePoint Foundation field type (as specified in the Type property) can be the parent of a custom derived field type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Sealed As Boolean
    Get
    Set
'Usage
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 if the field cannot be the parent of a derived SharePoint field type; otherwise, false.

Exceptions

Exception Condition
InvalidOperationException

An attempt is made to assign a value to a field type that is built into SharePoint. The true/false value of such fields must remain at its factory setting.

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?.)

Remarks

This property is not about whether the SPField class, or any class derived from it, is sealed.

See also

Reference

SPField class

SPField members

Microsoft.SharePoint namespace