首页 > 其他 > 详细

UWP开发-获取设备唯一ID

时间:2016-05-24 14:50:20      阅读:677      评论:0      收藏:0      [点我收藏+]
EasClientDeviceInformation deviceInfo = new EasClientDeviceInformation();

this.showDeviceInfo.Items.Add("设备友好名称:" + deviceInfo.FriendlyName);
this.showDeviceInfo.Items.Add("设备标识符:" + deviceInfo.Id);
this.showDeviceInfo.Items.Add("设备操作系统:" + deviceInfo.OperatingSystem);
this.showDeviceInfo.Items.Add("设备固件版本:" + deviceInfo.SystemFirmwareVersion);
this.showDeviceInfo.Items.Add("设备硬件版本:" + deviceInfo.SystemHardwareVersion);
this.showDeviceInfo.Items.Add("设备制造商:" + deviceInfo.SystemManufacturer);
this.showDeviceInfo.Items.Add("设备系统产品:" + deviceInfo.SystemProductName);
this.showDeviceInfo.Items.Add("设备SKU:" + deviceInfo.SystemSku); 

 

如需要详细到设备每个模块的信息使用:

System.Text.StringBuilder sb = new System.Text.StringBuilder();
Windows.Devices.Enumeration.DeviceInformationCollection dc = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync();

foreach (Windows.Devices.Enumeration.DeviceInformation item in dc)
{
    sb.Append(item.Name + ":\t" + item.Id + "\r\n");
} 

 

UWP开发-获取设备唯一ID

原文:http://www.cnblogs.com/shiyingzheng/p/5523066.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!