如何获得联系人的昵称 Windows Phone 8.1 [英] How to get Contact's Nickname Windows Phone 8.1

查看:30
本文介绍了如何获得联系人的昵称 Windows Phone 8.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Windows.ApplicationModel.Contacts.ContactManager 和 ContactStore,我可以使用 FindContactAsync(...) 读取全部或搜索联系人(人员).在某些记录中,我只在 Name (in People/phonebook) 组下设置了 Nickname 字段.当我搜索他们的昵称时,他们会返回,但联系人实例中的所有与名称相关的字段都是空字符串.我也找不到该类型的任何昵称字段.

Using Windows.ApplicationModel.Contacts.ContactManager and ContactStore I can read all or search for contacts (People) with FindContactAsync(...). On some records I have only Nickname field set under Name (in People/phonebook) group. They are returned when I search for their Nickname but all Name related fields from Contact instance are string empty. I couldn't find any nickname field on that type either.

有没有办法在 Windows Phone 8.1(不是 Silverlight)上获取联系人昵称?

Is there any way to get the contact Nickname on Windows Phone 8.1 (NOT Silverlight)?

推荐答案

我最近在开发 Windows Phone 8.1 运行时应用,也遇到了同样的问题.

I was working on a Windows Phone 8.1 Runtime app recently and also came upon this same issue.

似乎 Microsoft 已经记录了 Contact 类的 Nickname 属性,但尚未在 Visual Studio 中实现以供其他开发人员使用.

It seems that the Nickname property of the Contact class has been documented by Microsoft, but not yet implemented into Visual Studio for other developers to use.

您可以在此处查看 Contact 类的所有属性:联系人类 - Windows 应用开发

You can see all the properties for the Contact class here: Contact class - Windows app development

这里是 Nickname 属性的详细信息:Contact.Nickname |昵称属性 - Windows 应用开发

And the details for Nickname property here: Contact.Nickname | nickname property - Windows app development

检查属性页.一条消息说它没有发布并且要求是 Windows 10.

Check the property page. A message says it's not released and the requirements are Windows 10.

用户可以在人脉应用中输入昵称似乎很奇怪,但我们作为其他开发者不能在我们自己的应用中使用它.我想这就是现在使用 Windows Phone 8.1 自定义应用程序的方式.

It does seem strange that users can enter a Nickname in the People app, but we as other developers can't use it in our own apps. I guess that's just the way it is for now with Windows Phone 8.1 custom apps.

这篇关于如何获得联系人的昵称 Windows Phone 8.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆