Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

Using SPSite and SPWeb objects with RunWithElevatedPrivileges: Don’t cross the borders

$
0
0
This blog post is a contribution from David Wilborn, an engineer with the SharePoint Developer Support team. Although it’s mentioned in the SPSecurity.RunWithElevatedPrivileges documentation , I find that there is still often a lack of clarity for developers when using SPSite and SPWeb objects in conjunction with RunWithElevatedPrivileges delegate. The mistake I see the most often is attempting to get an SPSite or SPWeb object with elevated privileges by initializing the object inside of a RunWithElevatedPrivileges...(read more)

Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>