SharePoint of the Day #26

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();
}

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post

Posted under Developer

This post was written by spotd on May 6, 2009

Tags:

Like this tip? Hate it? Vote here

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

What do you think if this tip?

Name (required)

Email (required)

Website

Comments

More Blog Post

Previous Post: SharePoint of the Day #25