在Windows Phone的8.1设备唯一ID [英] Device Unique id in Windows Phone 8.1

查看:126
本文介绍了在Windows Phone的8.1设备唯一ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得的Windows Phone 8.1设备的唯一ID?使用的老办法 DeviceExtendedProperties.GetValue(DeviceUniqueId)不为Windows通用应用工作。

How to get the device unique id in Windows Phone 8.1? The old way of using DeviceExtendedProperties.GetValue("DeviceUniqueId") does not work for Windows Universal app.

推荐答案

请注意,当你写通用的应用程序,它不仅可以在手机上安装。而在电话技术上的硬件配置是相同的,在其他设备上也可以改变,所以它的标识。这是我觉得没有这样的通用方法来获取ID。 (更多信息,你可以找到也在这里)。

Note that when you write Universal App, it can be installed not only on phone. While on Phone technically hardware configuration is the same, on other devices it can change and so its ID. That's I think there is no such universal method to get ID. (more information you can find also here).

您可以看看<一个href=\"http://msdn.microsoft.com/en-us/library/windows/apps/windows.system.profile.hardwareidentification.aspx\">HardwareIdentification类及其方法<一href=\"http://msdn.microsoft.com/en-us/library/windows/apps/windows.system.profile.hardwareidentification.getpackagespecifictoken.aspx\">GetPackageSpecificToken:

HardwareToken myToken = HardwareIdentification.GetPackageSpecificToken(null);
IBuffer hardwareId = myToken.Id;

有也对使用App特定的硬件ID(ASHWID)来实现指导每个设备的应用程序逻辑

There is also a Guidance on using the App Specific Hardware ID (ASHWID) to implement per-device app logic.

这篇关于在Windows Phone的8.1设备唯一ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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