• 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 + "
    ");
    } 
    本文为博主原创,转载请注明出处,谢谢!
  • 相关阅读:
    6.1成果(冲刺2.10)
    5.31成果(冲刺2.9)
    5.30成果(冲刺2.8)
    5.29成果(冲刺2.7)
    5.28成果(冲刺2.6)
    5.27成果(冲刺2.5)
    5.26成果(冲刺2.4)
    5.25成果(冲刺2.3)
    Nginx location匹配后 跳转问题
    记一次centos上发布core,访问502的bug
  • 原文地址:https://www.cnblogs.com/shiyingzheng/p/5523066.html
Copyright © 2020-2023  润新知