Export (0) Print
Expand All
Expand Minimize

SPField.FromBaseType property

Gets a Boolean value that indicates whether the field derives from a base field type.

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

public bool FromBaseType { get; }

Property value

Type: System.Boolean
true if the field derives from a base field type; otherwise, false.

The base field types are defined in FLDTYPES.XML, which defines the default schema for lists. Every built-in list in a site inherits its schema from a base type. If the FromBaseType property returns true, the field cannot be converted to another field type, nor can it be deleted.

TipTip

If you want to prevent a field from being modified or deleted, set the Sealed property to true.

Show:
© 2014 Microsoft