SharePoint of the Day #60

A lot of SharePoint object has a property bag, in which you can store custom properties in the form of a hashtable.
For example, you can store custom site settings for custom applications in the SPWeb.Properties bag.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 23, 2009

Tags:

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();
}
Delicious Digg This Post

Posted under Developer

This post was written by spotd on May 6, 2009

Tags:

SharePoint of the Day #1

Always remember to call .Update() when you have made changes to an object through the SharePoint object model. A tip is that if there is an Update() method on the object you should call that method whenever you have made changes to the object.
Remembering that simple tip will help you. Now, if I could only [...]

Posted under Developer

This post was written by spotd on April 1, 2009

Tags: