gpt4 book ai didi

c# - 如何在 Windows Mobile 7 的 C# 中获取操作系统名称和版本详细信息?

转载 作者:太空狗 更新时间:2023-10-30 00:16:11 24 4
gpt4 key购买 nike

如何找到安装在使用 windows phone 操作系统的手机中的操作系统名称和操作系统版本。

最佳答案

你可以试试这些链接

http://msdn.microsoft.com/en-us/library/ff941122%28v=VS.92%29.aspx

http://msdn.microsoft.com/en-us/library/microsoft.phone.info.deviceextendedproperties%28v=VS.92%29.aspx

你可以试试这个

   public MainPage()
{
InitializeComponent();
GetDeviceInfo();
}
public void GetDeviceInfo()
{
long ApplicationMemoryUsage = DeviceStatus.ApplicationCurrentMemoryUsage;
long PeakMemoryUsage = DeviceStatus.ApplicationPeakMemoryUsage;
string FirmwareVersion = DeviceStatus.DeviceFirmwareVersion;
string HardwareVersion = DeviceStatus.DeviceHardwareVersion;
string Manufacturer = DeviceStatus.DeviceManufacturer;
string DeviceName = DeviceStatus.DeviceName;
long TotalMemory = DeviceStatus.DeviceTotalMemory;
string OSVersion = Environment.OSVersion.Version.ToString(); ;
PowerSource powerSource = DeviceStatus.PowerSource;
AddToList("Memory Usage :" + ApplicationMemoryUsage);
AddToList("Peak Memory Usage :" + PeakMemoryUsage);
AddToList("Firmware Version :" + FirmwareVersion);
AddToList("Hardware Version :" + HardwareVersion);
AddToList("Manufacturer :" + Manufacturer);
AddToList("Total Memory :" + TotalMemory);
AddToList("Power Source:" + powerSource.ToString());
AddToList("Operating System: Windows Phone " + OSVersion.ToString());

}
public void AddToList(string Property)
{
lstboxDeviceInfo.Items.Add(Property);
}

看这里for more info

关于c# - 如何在 Windows Mobile 7 的 C# 中获取操作系统名称和版本详细信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8472010/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com