Friday, February 24, 2012

Accessing site and web object in SharePoint feature receiver

using (SPSite site = properties.Feature.Parent as SPSite)
{
using (SPWeb currentWeb = site.OpenWeb())
{ }
}

No comments:

Post a Comment