Created
November 2, 2017 06:13
-
-
Save Hameds/a2861de4891d14b87941a7b61eb22708 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string siteUrl="http://spserver:81/sites/test"; | |
SPSite site=new SPSite(siteUrl); | |
SPSecurity.RunWithElevatedPrivileges(delegate() | |
{ | |
SPWeb web=site.OpenWeb(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment