コード例 #1
0
        public void GetUsersList()
        {
            getUserListRequest  listreq  = new getUserListRequest();
            getUserListResponse listresp = new getUserListResponse();

            listreq.name = "ZimbraGWmigration";
            listreq.key  = admin.Key;
            try
            {
                listresp = ws.getUserListRequest(listreq);
                int count = listresp.users.Length;
                System.Console.WriteLine("Total users on this Postoffice are :" + count);

                string message = " users are : ";
                while (count >= 0)
                {
                    message += listresp.users[count].name;

                    count--;
                }

                System.Console.WriteLine(message);
            }
            catch (Exception e)
            {
                System.Console.WriteLine("Exception in Getuserlist : " + e.Message);
            }
        }
コード例 #2
0
ファイル: GroupWise.cs プロジェクト: TaNhoSy/zimbra-mirror
        public void GetUsersList()
        {
            getUserListRequest listreq = new getUserListRequest();
            getUserListResponse listresp = new getUserListResponse();
            listreq.name = "ZimbraGWmigration";
            listreq.key = admin.Key;
            try
            {

                listresp = ws.getUserListRequest(listreq);
                int count = listresp.users.Length;
                System.Console.WriteLine("Total users on this Postoffice are :" + count);

                string message = " users are : ";
                while (count >= 0)
                {
                    message += listresp.users[count].name;

                    count--;

                }

                System.Console.WriteLine(message);

            }
            catch (Exception e)
            {

                System.Console.WriteLine("Exception in Getuserlist : " + e.Message);

            }
        }