用户
 找回密码
 立即注册
发表于 2019-9-6 19:16:02
csfeixia 发表于 2019-9-6 19:03
this.Client.Contacts.GetContactEnties((obj, args) =>
            {
                if (args.isErr ...

另外,这个需求,感觉很正常啊,比如 需要把客户的手机号填写在APP当 中,复制粘贴进去,感觉 不是很合适哦,这个问题去年我好像就提过了。
使用道具 举报 回复 支持 反对
发表于 2019-9-6 19:03:40
Lula.Jin 发表于 2019-9-6 15:46
从其回调参数args.Value.phoneNumbers中获取

this.Client.Contacts.GetContactEnties((obj, args) =>
            {
                if (args.isError == true)
                {
                    MessageBox.Show(args.error);
                }
                else
                {
                  
                    MessageBox.Show(string.Format("共计:{0}", args.Value.Count));
                }
            });
这个可以获取到个 数,我的手机有1千多个号码

但是 this.Client.Contacts.GetContactEnties((obj, arg) =>
            {
                List<ContactEntity> contact = arg.Value;
                foreach (ContactEntity c in contact)
                {
                    foreach (KeyValuePair<string, string> kvp in c.phoneNumbers)
                        textBox5mb.Text = kvp.Key;


                }

            }); 报错,未将对象……
使用道具 举报 回复 支持 反对
发表于 2019-9-6 15:46:00
从其回调参数args.Value[i].phoneNumbers中获取
使用道具 举报 回复 支持 反对
12
发新帖
您需要登录后才可以回帖 登录 | 立即注册