摘要:
private bool AddUserIntoGroup(SPWeb web, string sGroupName, int iUserID) { bool res = false; try { web.AllowUnsafeUpdates = true; SPGroup oGroup = web.SiteGroups[sGroupName]; SPUser oUser = web.AllUsers.GetByID(iUserID); if (oUs... 阅读全文