Posted By

scholli on 08/13/10


Tagged

security sharepoint


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


RunWithElevatedPrivileges


 / Published in: C#
 

  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  

You need to login to post a comment.