SPField.AllowDeletion property
SharePoint 2013
Gets or sets a Boolean value that specifies whether the field can be deleted.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.Nullable<Boolean>true if the field can be deleted; otherwise, false or null. Always returns false when the field has an external data source.
| Exception | Condition |
|---|---|
| NotSupportedException | This property cannot be set if the field has an external data source. |