This topic has not yet been rated - Rate this topic

Environment Class

April 12, 2014

Gives applications access to information about the environment in which they are running. In the current release, the only supported property of this class is DeviceType, which is used to determine if an application is running on an actual Windows Phone device or on the device emulator on a PC.

System.Object
  Microsoft.Devices.Environment

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public static class Environment

The Environment type exposes the following members.

  NameDescription
Public propertyStatic memberDeviceTypeGets 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.
Top

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.