SPList.AllowDeletion Property

Gets or sets a Boolean value specifying whether the list can be deleted.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property AllowDeletion As Boolean
    Get
    Set
'Usage
Dim instance As SPList
Dim value As Boolean

value = instance.AllowDeletion

instance.AllowDeletion = value
public bool AllowDeletion { get; set; }

Property Value

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

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace