[UWP]如何在WinRT Contact API中获取联系人的帐户(DataSource)? [英] [UWP]How to get the account(DataSource) of a contact in WinRT Contact API?

查看:61
本文介绍了[UWP]如何在WinRT Contact API中获取联系人的帐户(DataSource)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的WP8 Silverlight应用程序迁移到UWP。

I'm migrating my WP8 Silverlight app to UWP.

在WP Silverlight API中,我可以使用  Microsoft.Phone.UserData.Contact.Accounts属性来获取联系人的帐户(Outlook,Gmail,iCloud等数据源)。但是在WinRT Contact API中,我找不到办法做到这一点。

In WP Silverlight API, I can use Microsoft.Phone.UserData.Contact.Accounts property to get the account (The data source as Outlook, Gmail, iCloud etc) of a contact. But In WinRT Contact API, I can't find a way to do that.

那么WinRT中的等效API是什么?

So what's the equivalent API in WinRT?

推荐答案

HelloEswo​​rd,

HelloEsword,

您可以使用
ContactPicker
返回
联系人
并从中获取电子邮件ID。

You could use ContactPicker which will return the Contact and get the email id from that.

请参阅:
联系选择器样本

关注,

Krunal Parekh

Krunal Parekh


这篇关于[UWP]如何在WinRT Contact API中获取联系人的帐户(DataSource)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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