zoukankan      html  css  js  c++  java
  • UWP开发-获取设备唯一ID

    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 + ":	" + item.Id + "
    ");
    } 
    本文为博主原创,转载请注明出处,谢谢!
  • 相关阅读:
    用户调查报告
    beta-2阶段组员贡献分分配
    beta阶段140字评论
    11月9号站立会议
    BETA预发布演示视频
    第八周PSP&进度条
    11月8号站立会议
    栈——C语言模拟
    读《弗洛伊德:作家与白日梦》
    《爱的艺术》爱的误解——对象,状态
  • 原文地址:https://www.cnblogs.com/shiyingzheng/p/5523066.html
Copyright © 2011-2022 走看看