SharePoint object model allows to access recycle bins of web sites or site collections by calling RecycleBin property of the SPWeb or SPSite classes respectively.
|
1 2 3 |
SPRecycleBinItemCollection recycleBinItemcollection = yourSite.RecycleBin; //or SPRecycleBinItemCollection recycleBinItemcollection = yourWeb.RecycleBin; |
RecycleBin property will return recycle bin items as SPRecycleBinItemCollection. Items of this collection is SPRecycleBinItem. Type of the recycle bin can be accessed by BinType property of SPRecycleBinItemCollection. It [...]