SPSite.GetRecycleBinStatistics Method

Gets both the number of items in the recycle bin and its size.

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

Syntax

'Declaration
Public Sub GetRecycleBinStatistics ( _
    <OutAttribute> ByRef itemCount As Integer, _
    <OutAttribute> ByRef size As Long _
)
'Usage
Dim instance As SPSite
Dim itemCount As Integer
Dim size As Long

instance.GetRecycleBinStatistics(itemCount, _
    size)
public void GetRecycleBinStatistics(
    out int itemCount,
    out long size
)

Parameters

  • itemCount
    Type: System.Int32

    When this method returns, the number of items in the recycle bin.

  • size
    Type: System.Int64

    When this method returns, the size, in bytes, of the recycle bin.

Remarks

This method gets the number of items in the recycle bin and its size, in bytes, as output parameters.

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace