简体   繁体   English

在Windows Phone 8应用中获取用户信息

[英]Get user information in Windows Phone 8 app

我正在制作一个具有高分表的游戏(在我的服务器上),现在我需要获取玩家的唯一信息(电子邮件,MS accout名称,Live ID ...)或任何其他定义人员添加的方式到最高分,那么是否有获取信息的途径呢?

Take a look at the ANID2 . 看一下ANID2 It is an identifier that is unique to the Windows Live ID of the user and the publisher ID of the app. 它是用户的Windows Live ID和应用程序的发布者ID唯一的标识符。

string anid2 = (string)Microsoft.Phone.Info.UserExtendedProperties.GetValue("ANID2");

To use this Api you have to add the "ID_CAP_IDENTITY_USER" capability in the app manifest. 要使用此Api,您必须在应用清单中添加“ ID_CAP_IDENTITY_USER”功能。 You may also find this blogpost helpful. 您可能还会发现此博客文章很有帮助。

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

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