The deleted items of a site collection or site is stored in the RecycleBin collection in the form of RecycleBinItem items. You can query or manipulate these items, for example using the following code:
SPWeb web = SPContext.Current.Web;
foreach (SPRecycleBinItem item in web.RecycleBin)
{
item.Restore();
}
Posted under Developer
This post was written by spotd on May 6, 2009


