简体   繁体   English

获取Windows Phone用户帐户

[英]get windows phone user accounts

I'm trying to get windows phone user accounts (live, facebook, twitter, linkedin...) in c# for windows phone, so i found this: 我试图在Windows手机的c#中获取Windows手机用户帐户(live,facebook,twitter,linkedin ...),所以我发现了这个:

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

and I wrote this code: 我写了这段代码:

    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 但现在我卡住了我无法获得我需要的电子邮件的价值,例如,谢谢

PS I'm talking about personal accounts not contacts accounts ;) PS我说的是个人账户而不是联系账户;)

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

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM