检索 Microsoft Surface 的唯一设备 ID [英] Retrieving the unique device ID of Microsoft Surface
问题描述
我正在开发适用于 Windows 8 的应用程序,并且正在 Microsoft 的 Surface 上对其进行测试.有谁知道如何检索Surface的唯一设备ID?
I am developing an application for Windows 8 and I am testing it on Microsoft's Surface. Does any one know how I can retrieve the unique device ID of Surface?
就像我们为 Windows Phone 所做的那样,使用 Microsoft.Phone.Info
命名空间检索其唯一设备 ID.
Just like we do for Windows Phone by retrieving its unique device id using Microsoft.Phone.Info
namespace.
推荐答案
我使用 Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken(null).Id
转换为字符串,详情见 http://coding.kulman.sk/how-to-uniquely-标识-a-windows-8-device/
I use Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken(null).Id
converted to string, details at http://coding.kulman.sk/how-to-uniquely-identify-a-windows-8-device/
这篇关于检索 Microsoft Surface 的唯一设备 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!