This topic has not yet been rated - Rate this topic

Environment.DeviceType Property

July 26, 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)
public static DeviceType DeviceType { get; }

Property Value

Type: Microsoft.Devices.DeviceType
Type: DeviceType.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.