private SPUserCollection GetSelectUser()
        {
            SPUserCollection users = null;
            if (userEditor.IsValid)
            {
                string[] strLoginNames = new string[userEditor.Entities.Count];
                for(int nA = 0; nA < userEditor.Entities.Count; nA++)
                {
                    strLoginNames[nA] = ((PickerEntity)userEditor.Entities[nA]).Key;
                }

                users = SPContext.Current.Web.SiteUsers.GetCollection(strLoginNames);
                if (users.Count == 0 )
                {
                    users = null;
                }
            }
            return users;
        }

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-12-31
  • 2022-02-02
  • 2021-08-03
相关资源
相似解决方案