Share via


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

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property CanBeDeleted As Boolean
    Get
'Usage
Dim instance As SPField
Dim value As Boolean

value = instance.CanBeDeleted
[ClientCallableAttribute]
public bool CanBeDeleted { get; }

Property Value

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

Remarks

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.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace