Windows phone 8.1 如何在Windows 8.1的通用应用程序中找到设备型号名称
我使用的api需要所用设备的型号名称。在Windows8中,我会使用Windows phone 8.1 如何在Windows 8.1的通用应用程序中找到设备型号名称,windows-phone-8.1,Windows Phone 8.1,我使用的api需要所用设备的型号名称。在Windows8中,我会使用Microsoft.Phone.Info.DeviceStatus.DeviceName。但是,我正在Windows 8.1中创建一个新的通用应用程序,并且“Microsoft.Phone”名称空间似乎丢失了 如何查找Windows 8.1中与通用应用程序一起使用的设备的型号名称目前最简单(当然不是最好)的答案可能是: Windows.Networking.approxity.PeerFinder.DisplayName 这一思
Microsoft.Phone.Info.DeviceStatus.DeviceName
。但是,我正在Windows 8.1中创建一个新的通用应用程序,并且“Microsoft.Phone”名称空间似乎丢失了
如何查找Windows 8.1中与通用应用程序一起使用的设备的型号名称目前最简单(当然不是最好)的答案可能是:
Windows.Networking.approxity.PeerFinder.DisplayName
这一思想归功于at您可以使用类来检索设备信息
样本:
var deviceInformation = new EasClientDeviceInformation();
var deviceName = deviceInformation.FriendlyName;
var operatingSystem = deviceInformation.OperatingSystem;