我正在开发一款Windows10 UWP客户端应用程序,它在公司的本地网络中运行。该应用程序需要知道Windows 10设备ID以识别安装它的每台PC。您可以在“设置-关于”页面中看到Windows 10设备ID的值:
我尝试使用EasClientDeviceInformation.Id
,但它的值不同。
我该如何获取Windows 10设备ID?
我尝试使用EasClientDeviceInformation.Id
,但它的值不同。
我该如何获取Windows 10设备ID?
我认为你要找的是 SystemIdentification 类。它不会在设置页面中提供设备 ID,但根据 Microsoft Docs 的建议,它可用于唯一标识设备。
var systemId = Windows.System.Profile.SystemIdentification.GetSystemIdForPublisher();
提供唯一标识正在运行应用程序的系统的信息。
https://learn.microsoft.com/en-us/uwp/api/windows.system.profile.systemidentification