Determine if an application is running on Microsoft Surface RT?

Is there an easy way to determine if the C # Windows 8 Store app is running on Microsoft Surface RT vs Surface Pro 1/2/3 and something else?

+4
source share
3 answers

Source code: https://github.com/AttackPattern/CSharpAnalytics/tree/master/Source/CSharpAnalytics/SystemInfo

Using:

var Model = await WindowsStoreSystemInfo.GetDeviceModelAsync();

Examples on my devices:

Model: "MacBookPro9,2"
Model: "Surface with Windows RT"
Model: "Surface with Windows 8"

I do not have surface 2 or 3, so I can’t say, but I think they give “Surface Pro 2” or “Surface Pro 3”. It is necessary to confirm.

+1
source

, API . , , Windows , , , - .

0

.

, , , . Visual Studio 2013 Update 2.

- , , , , .

http://msdn.microsoft.com/en-us/library/dn509554.aspx

0

Source: https://habr.com/ru/post/1541659/


All Articles