Windows Phone Class Library
Environment.DeviceType Property
March 22, 2012
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.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Visual Basic (Declaration)
Public Shared ReadOnly Property DeviceType As DeviceType
C#
public static DeviceType DeviceType { get; }
Version Information
Windows Phone OS
Supported in: 7.1, 7.0Platforms
Windows Phone
See Also