UserExtendedProperties.GetValue(“ANID") 在 Windows 8 上等效 [英] UserExtendedProperties.GetValue("ANID") equivalent on Windows 8

查看:26
本文介绍了UserExtendedProperties.GetValue(“ANID") 在 Windows 8 上等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows Phone 7 上,您可以这样做以获取当前用户的匿名唯一 ID.

On Windows Phone 7 you can do like this to get an anonymous unique id for the current user.

UserExtendedProperties.GetValue("ANID") 

我搜索了一段时间以找到与我当前的 Windows 8 (WinRT) 等效的版本,但我似乎找不到它.我找到的所有结果都讨论了如何获取支持的硬件/设备特定 ID,这不是我所需要的.

I have search for a while to find an equivalent for my current Windows 8 (WinRT), but I can't seem to find it. All the results I find, talks about how to get a Hardware/device specific ID, which IS supported, it's just not what I need.

提前致谢,疯子

推荐答案

感谢 xamlgeek 和其他人发现,在 Windows 8 中无法获得唯一用户 ID - 至少目前是这样.

Found out, thanks to xamlgeek an others, that it's not possible to get a Unique User Id in Windows 8 - at least for now.

所以我不得不回退到设备 ID,这远不是我需要的,但发现这个代码片段非常完美(C#):

So I have to fallback on Device Id, which is far from what I needed, but found this code snippet with works perfect (C#):

http://bartwullems.blogspot.co.uk/2012/09/windows-8-uniquely-identifying-device.html

这篇关于UserExtendedProperties.GetValue(“ANID") 在 Windows 8 上等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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