Posted By


scholli on 08/13/10

Statistics


Viewed 77 times
Favorited by 1 user(s)

RunWithElevatedPrivileges


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SPSecurity.RunWithElevatedPrivileges(delegate()
  2. {
  3. using (SPSite site = new SPSite(SPContext.Current.Site.ID))
  4. {
  5. // implementation details omitted
  6. }
  7. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.