SPSite.GetRecycleBinStatistics Method

Returns the number of items in the recycle bin and its size as output parameters.

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


Public Sub GetRecycleBinStatistics ( _
    <OutAttribute> ByRef itemCount As Integer, _
    <OutAttribute> ByRef size As Long _

Dim instance As SPSite
Dim itemCount As Integer
Dim size As Long

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


  • itemCount
    Type: System.Int32
    A 32-bit integer that indicates the number of items in the recycle bin.
  • size
    Type: System.Int64
    A long integer that indicates the size of the recycle bin.

See Also


SPSite Class

SPSite Members

Microsoft.SharePoint Namespace