Compartilhar via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallablePropertyAttribute(SetProperty := False)> _
Public Property Sealed As Boolean
    Get
    Set
'Usage
Dim instance As SPField
Dim value As Boolean

value = instance.Sealed

instance.Sealed = value
[ClientCallablePropertyAttribute(SetProperty = false)]
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