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)
Syntax
Public Shared ReadOnly Property DeviceType As DeviceType
public static DeviceType DeviceType { get; }
Property Value
Type: Microsoft.Devices..::.DeviceType
Type: DeviceType.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone