SPSite.GetRecycleBinItems Method
Returns a collection of recycle bin items based on the specified query.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function GetRecycleBinItems ( _
query As SPRecycleBinQuery _
) As SPRecycleBinItemCollection
'Usage
Dim instance As SPSite
Dim query As SPRecycleBinQuery
Dim returnValue As SPRecycleBinItemCollection
returnValue = instance.GetRecycleBinItems(query)
public SPRecycleBinItemCollection GetRecycleBinItems(
SPRecycleBinQuery query
)
Parameters
query
Type: Microsoft.SharePoint.SPRecycleBinQueryAn SPRecycleBinQuery object that represents a query on items in the recycle bin.
Return Value
Type: Microsoft.SharePoint.SPRecycleBinItemCollection
An SPRecycleBinItemCollection object that represents a collection of recycle bin items.