DeviceType Property
Collapse the table of content
Expand the table of content

Environment.DeviceType Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the type of device on which the application is running. Use this property to determine if your application is running on an actual device or on the device emulator.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static DeviceType DeviceType { get; }

Property Value

Type: Microsoft.Devices.DeviceType
Type: DeviceType.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft