获取 Windows Phone 用户帐户 [英] get windows phone user accounts

查看:29
本文介绍了获取 Windows Phone 用户帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 c# 中为 windows 手机获取 windows 手机用户帐户(live、facebook、twitter、linkedin...),所以我发现了这个:

I'm trying to get windows phone user accounts (live, facebook, twitter, linkedin...) in c# for windows phone, so i found this:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.userdata.account(v=vs.105).aspx

我写了这段代码:

    public MainPage()
    {
        InitializeComponent();

        Account account = new Account();
        account.Kind = StorageKind.Facebook;
        MessageBox.Show(account.Kind.ToString());
        account.Name = EmailAddressKind.Personal.ToString();
        MessageBox.Show(account.Name);
    }

    public sealed class Account
    {
        public StorageKind Kind { get; internal set; }
        public string Name { get; internal set; }
    }

但现在我卡住了,我无法获得我需要的电子邮件的价值,例如,谢谢

but now I'm stuck I cannot get the value of the email that i need, for example, thanks

附言我说的是个人帐户而不是联系人帐户 ;)

P.S. I'm talking about personal accounts not contacts accounts ;)

推荐答案

无法从代码中检索用户的电子邮件地址 - 您可以提示他们输入与帐户关联的电子邮件(以使其更容易),但可以不要自己找回.

It is not possible to retrieve the user's email address from code - you can prompt them for the email associated with an account (to make it easier), but can't retrieve it yourself.

这篇关于获取 Windows Phone 用户帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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