我试图让Windows Phone的用户帐户(活,Facebook,微博,LinkedIn ...)在C#中的windows phone,所以我发现这一点:
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; }
}
但现在我坚持我不能得到我需要的电子邮件的值,例如,谢谢
PS我说的是个人账户不能接触账户;)