Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void ItemAdded(SPItemEventProperties properties)
- {
- base.ItemAdded(properties);
- SPSecurity.RunWithElevatedPrivileges(delegate()
- {
- using (SPSite site = new SPSite(properties.Web.Site.ID))
- {
- using (SPWeb spCurrentSite = site.OpenWeb(properties.Web.ID))
- {
- public override void ItemAdded(SPItemEventProperties properties)
- {
- base.ItemAdded(properties);
- SPSecurity.RunWithElevatedPrivileges(delegate()
- {
- using (SPSite site = new SPSite(properties.siteID))
- {
- string currenweburl = properties.RelativeWebUrl;
- using (SPWeb spCurrentSite = site.OpenWeb(currentweburl))
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement