首页 文章

如何在UWP应用程序中获取Windows 10设备ID?

提问于
浏览
0

我正在开发一个在公司本地网络中运行的Windows 10 UWP客户端应用程序 . 应用程序需要知道Windows 10设备ID以识别其安装的每台PC . 您可以在“设置 - 关于”页面中查看Windows 10设备ID的值:

我尝试使用EasClientDeviceInformation.Id,但它的值不同 .

如何获取Windows 10设备ID?

1 回答

  • 0

    我认为 SystemIdentification 课程正是你要找的 . 它不在设置页面中提供设备ID . 但它用于根据Microsoft Docs中的建议唯一标识设备 .

    var systemId = Windows.System.Profile.SystemIdentification.GetSystemIdForPublisher();
    

    提供用于唯一标识运行应用程序的系统的信息 .

    https://docs.microsoft.com/en-us/uwp/api/windows.system.profile.systemidentification

相关问题