Environment.DeviceType Property (Microsoft.Devices)

Switch View :
ScriptFree
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.

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

Visual Basic (Declaration)
Public Shared ReadOnly Property DeviceType As DeviceType
C#
public static DeviceType DeviceType { get; }

Property Value

Type: Microsoft.Devices.DeviceType
Type: DeviceType.
Version Information

Windows Phone OS

Supported in: 7.1, 7.0
Platforms

Windows Phone

See Also

Reference