zoukankan      html  css  js  c++  java
  • Windows PHone 8 获取硬件信息

            /// <summary>
            /// 获取系统信息
            /// </summary>
            private string GetDeviceInfo()
            {
                StringBuilder sb = new StringBuilder();
                sb.AppendLine("设备制造商:" + DeviceStatus.DeviceManufacturer);
                sb.AppendLine("设备名称:" + DeviceStatus.DeviceName);
                sb.AppendLine("物理内存:" + (DeviceStatus.DeviceTotalMemory / 1024 / 1024).ToString() + "M");
                sb.AppendLine("硬件版本:" + DeviceStatus.DeviceHardwareVersion);
                sb.AppendLine("固件版本:" + DeviceStatus.DeviceFirmwareVersion);
                sb.AppendLine("物理键盘:" + DeviceStatus.IsKeyboardDeployed.ToString());
                sb.AppendLine("供电方式:" + DeviceStatus.PowerSource);
                object uniqueID = "";
                DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueID);
                if (uniqueID != null)
                {
                    sb.AppendLine("设备标识:" + uniqueID.ToString());
                }
                sb.AppendLine("系统内核:" + System.Environment.OSVersion.Platform.ToString());
                sb.AppendLine("系统版本:" + System.Environment.OSVersion.Version.ToString());
                sb.AppendLine("当前语言:" + CultureInfo.CurrentCulture.DisplayName);
                sb.AppendLine("当前时区:UTC" + DateTimeOffset.Now.ToString("%K"));
                return sb.ToString();
            }
    "与UTC之间的时间偏移量:" + DateTimeOffset.Now.Offset.ToString()

     

  • 相关阅读:
    too many open files linux服务器 golang java
    fasthttp 文档手册
    syncer.go
    grpc.go
    stm.go
    session.go
    mutex.go
    [HTML5]label标签使用以及建议
    禁止使用finalize方法
    [支付宝]手机网站支付快速接入
  • 原文地址:https://www.cnblogs.com/grj1046/p/3336554.html
Copyright © 2011-2022 走看看