Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CanBeDeleted property
Collapse the table of content
Expand the table of content

SPField.CanBeDeleted property

Gets a Boolean value that indicates whether the field can be deleted.

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

public bool CanBeDeleted { get; }

Property value

Type: System.Boolean
true if the field can be deleted; otherwise, false.

This property returns the value of the AllowDeletion property if it has a value. If AllowDeletion does not have a value, CanBeDeleted returns false if either the FromBaseType property or the Sealed property return true.

© 2015 Microsoft