博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
UWP开发-获取设备唯一ID
阅读量:4697 次
发布时间:2019-06-09

本文共 1012 字,大约阅读时间需要 3 分钟。

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");}

 

转载于:https://www.cnblogs.com/shiyingzheng/p/5523066.html

你可能感兴趣的文章
cnblog!i'm coming!
查看>>
使用点符号代替溢出的文本
查看>>
Axios 中文说明
查看>>
fatal: remote origin already exists.
查看>>
gridview 自定义value值
查看>>
2018二月实现计划成果及其三月规划
查看>>
类名.class和getClass()区别
查看>>
12/17面试题
查看>>
LeetCode 242. Valid Anagram
查看>>
JSP表单提交乱码
查看>>
如何适应现代雇佣关系
查看>>
团队项目(第五周)
查看>>
SQL 优化经验总结34条
查看>>
开源 视频会议 收藏
查看>>
核心J2EE模式 - 截取过滤器
查看>>
.net开源CMS
查看>>
JdbcTemplate
查看>>
第一次使用maven记录
查看>>
SharePoint服务器端对象模型 之 使用CAML进展数据查询
查看>>
Building Tablet PC Applications ROB JARRETT
查看>>