摘要: 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... 阅读全文
posted @ 2013-05-09 17:49 gzh4455 阅读(396) 评论(0) 推荐(0) 编辑