如何在Windows Phone 8.1中设置和获取电话联系人 [英] How to set and get Phone Contacts in windows phone 8.1

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

问题描述

问候!

我想为Windows Phone 8.1创建一个应用程序,我必须设置并获取联系人我的手机。

I want to create an app for Windows phone 8.1 , where I have to set and get Contacts of my phone .

在Windows Phone 8.1 sdk中,我没有得到正确的Api。

In windows phone 8.1 sdk, I didn't get the correct Api.

所以请帮我查一下这些Api。

So Please help me to find out these Api.

问候,

Vikash singh

Vikash singh

vikash singh

vikash singh

推荐答案

如果您想要检索手机上已有的联系人,那么您将需要使用Contacts类,如文章http中所述://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286416%28v=vs.105%29.aspx。这将为您提供只读
访问用户通过其他方式(Facebook,Outlook,其他应用程序等)创建的联系人。

If you want to retrieve contacts that are already on your phone, then you'll want to use the Contacts class, as described in the article http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286416%28v=vs.105%29.aspx. This will give you read-only access to contacts that the user has created via other means (facebook, outlook, other apps, etc).

如果您想要您的应用程序为了能够添加特定于您的应用程序但仍显示在人员中心等位置的\edit\delete联系人,您将需要创建自定义联系人存储(请参阅http://msdn.microsoft。 com / en-us / library / windowsphone / develop / jj207024%28v = vs.105%29.aspx
了解更多详情)。您将无法使用此方法访问由其他来源创建的联系人(这是您需要的第一篇文章)。

If you are wanting your app to be able to add\edit\delete contacts that are specific to your app but have them appear in places like the people hub, then you'll want to create a custom contact store (see http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207024%28v=vs.105%29.aspx for more details). You won't be able to access contacts created by other sources using this method (which is what you need the first article for).

希望这有帮助。

戴夫


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

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