zoukankan      html  css  js  c++  java
  • 获取选择的用户集合

    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;
            }

  • 相关阅读:
    fork()
    定时器
    epoll函数
    select函数
    高性能服务器程序框架
    socker地址API
    点击选中/取消选中flag
    html5的视频和音频
    html5
    JavaScript的string方法(demo)
  • 原文地址:https://www.cnblogs.com/hqbird/p/2058991.html
Copyright © 2011-2022 走看看