SPWeb.RecycleBinEnabled Property

Gets or sets a value that determines whether the recycle bin is enabled for the website.

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 RecycleBinEnabled As Boolean
    Get
'Usage
Dim instance As SPWeb
Dim value As Boolean

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

Property Value

Type: System.Boolean
true if the recycle bin is enabled; otherwise, false. The default value is true.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace

RecycleBin