简体   繁体   English

Windows Phone-C#-检索联系人电子邮件

[英]Windows phone - C# - Retrieving contact email

In my application I have a button which you can click on to send an email with certain contents. 在我的应用程序中,我有一个按钮,您可以单击该按钮以发送包含某些内容的电子邮件。 However I would like to know how to choose an email contact from the phones contacts, through some sort of contact-picker? 但是我想知道如何通过某种联系人选择器从电话联系人中选择电子邮件联系人?

Is there any in-built contact-picker which I could use? 我可以使用任何内置的联系人选择器吗?

Thanks alot! 非常感谢!

You can use the EmailAddressChooserTask 您可以使用EmailAddressChooserTask

EmailAddressChooserTask eact = new EmailAddressChooserTask();
eact.Completed += eact_Completed;
eact.Show();

void eact_Completed(object sender, EmailResult e)
{
    if (e.TaskResult == TaskResult.OK)
    { 
       string selectedEmail = e.Email;
    }
    else
    {
       //nothing chosen
    }      
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Windows Phone 8中使用不同的联系人详细信息合并相同的联系人 - merge same contact with different contact details in windows phone 8 c# 在Windows Phone 8中获取包含多个电话号码的联系人列表 - get contact list with multiple phone numbers in windows phone 8 c# 将联系人保存在Windows Phone 7 C#的隔离存储中 - save Contact in isolated storage in windows phone 7 c# 将列表保存并检索到本地存储中(Windows Phone 8.1&C#) - Saving and retrieving list to a local storage (Windows Phone 8.1 & C#) 在C#中检索Windows Phone 7中的自己的单元格号 - Retrieving own cell number in Windows Phone 7 in C# 如何使用from字段在Windows Phone 8上使用C#发送电子邮件 - How to send email with C# on Windows Phone 8 with from field 使用C#在Windows Phone 7中开发电子邮件客户端应用程序 - Developing email client apps in Windows Phone 7 in C# C#/ Outlook-检索特定的全局联系人 - C# / Outlook - retrieving a specific Global Contact contact.vcf Vcard似乎不是有效的名片。 Windows Phone 8.1 C# - contact.vcf Vcard does not seems to be a valid business card. Windows phone 8.1 C# 在本地保存的 json 文件 windows phone 8.1 C# 中多次存储和检索数据 - Storing and retrieving data multiple time in locally saved json file windows phone 8.1 C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM