摘要:
When assigning permissions to theBasePermissionsproperty, you can use the following operators:&- bitwiseAND^- exclusiveOR|- inclusiveORFor Windows SharePoint Services permissions, you often work with each permission individually, so it is common to use^or|as operators.The following three lines i 阅读全文
摘要:
http://www.alaindeklerk.com/modify-permission-levels-using-bitwise-operators/ 阅读全文
摘要:
SPSecurity.RunWithElevatedPrivileges(delegate() { SPSite site = new SPSite("http://john1/"); SPWeb web = site.OpenWeb(); Console.WriteLine("Currently logged in as: " + web.CurrentUser.ToString() + "(" + web.CurrentUser.Name + ")"); ... 阅读全文
摘要:
http://www.cnblogs.com/gzh4455/archive/2012/03/26/2417854.html 阅读全文