如何找到使用Windows Phone os的手机中安装的操作系统名称和操作系统版本。
答案 0 :(得分:8)
您可以尝试这些链接
http://msdn.microsoft.com/en-us/library/ff941122%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
答案 1 :(得分:2)
答案 2 :(得分:1)
我认为该版本应该从Environment.OSVersion.Version
抓取,我认为您必须将它们与适用的操作系统列表进行比较
我发现这个article可能有助于确定平台
答案 3 :(得分:0)