Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPWeb.GetRecycleBinItems method

Gets the recycle bin items that are based on the specified query.

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

public SPRecycleBinItemCollection GetRecycleBinItems(
	SPRecycleBinQuery query


Type: Microsoft.SharePoint.SPRecycleBinQuery

The query for items in the recycle bin.

Return value

Type: Microsoft.SharePoint.SPRecycleBinItemCollection
The recycle bin items that match the query.

This method uses the properties of the query parameter to limit the number of items to return or set the order condition, but it cannot filter the specified item by properties of the item.

© 2015 Microsoft