如何在Windows 8.1的通用应用程序中找到设备型号名称

thr*_*ter 2 windows-phone-8.1

我正在使用的api需要使用的设备的型号名称.在Windows 8中我会使用Microsoft.Phone.Info.DeviceStatus.DeviceName.但是,我在Windows 8.1中创建了一个新的通用应用程序,并且"Microsoft.Phone"命名空间似乎缺失了.

如何在Windows 8.1中找到与通用应用程序一起使用的设备的型号名称

Ale*_*aev 7

您可以使用EasClientDeviceInformation类来检索设备信息.

样品:

var deviceInformation = new EasClientDeviceInformation();
var deviceName = deviceInformation.FriendlyName;
var operatingSystem = deviceInformation.OperatingSystem;
Run Code Online (Sandbox Code Playgroud)