[英]Getting Windows Phone version and device name in Windows Phone 8.1 XAML
在我使用的Windows Phone 8 Silverlight中
Environment.OSVersion.ToString()
獲得Windows Phone版本和
DeviceStatus.DeviceManufacturer+" "+DeviceStatus.DeviceName
獲取設備名稱。
這些API不再適用於Windows Phone 8.1 XAML。 我已經發現
Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation()
這似乎返回制造商和設備名稱,但操作系統返回只是“Windows Phone”。
有沒有辦法獲得確切的Windows手機版本?
目前在Windows運行時8.1(手機和Windows)中無法實現。 Morten Nielsen和Pete Brown感謝它的計划
對於8.1,您可以在Github上使用此項目https://github.com/Microsoft/phone-info ,其中包含用於檢索Windows Phone設備的靜態和動態屬性的示例應用程序。
對於Windows 10,用於在(8和8.1)上收集這些數據的API已更改。 我找到了一篇博客文章https://www.suchan.cz/2015/08/uwp-quick-tip-getting-device-os-and-app-info/給那些創建了一個幫助類來檢索以下內容的人Windows 10 UWP應用程序中的屬性
current OS family - phone/desktop/...
current OS build number - 10.0.10240.16413
current OS architecture - x86/x64/ARM
current App Display Name
current App Version - 3.0.2.0
current Device manufacturer - Nokia
current Device model - Lumia 1520
在他的文章中,他展示了如何獲得有關當前設備,操作系統和應用程序的基本數據。
試一試也許有幫助
在Windows Phone 8.1中:
Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation().FriendlyName
它對我有用!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.