How to get Windows 10 Device ID in UWP application?

女生的网名这么多〃 提交于 2021-02-08 06:36:37

问题


I am developing a Windows 10 UWP client application which run in company's local network. The application needs to know Windows 10 Device ID to identify each PC that it's installed on. You can see value of Windows 10 Device ID in Settings-About page:

I tried to use EasClientDeviceInformation.Id but its value is different.

How do I do to get Windows 10 Device ID?


回答1:


I think SystemIdentification class is what you are looking for. It doesnot provide device id in settings page. But it is used to uniquely identify the device as suggested in Microsoft Docs.

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

Provides information to uniquely identify the system on which the app is running.

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



来源:https://stackoverflow.com/questions/53701520/how-to-get-windows-10-device-id-in-uwp-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!