Condividi tramite


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function GetRecycleBinItems ( _
    query As SPRecycleBinQuery _
) As SPRecycleBinItemCollection
'Usage
Dim instance As SPWeb
Dim query As SPRecycleBinQuery
Dim returnValue As SPRecycleBinItemCollection

returnValue = instance.GetRecycleBinItems(query)
public SPRecycleBinItemCollection GetRecycleBinItems(
    SPRecycleBinQuery query
)

Parameters

Return Value

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

Remarks

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.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace