EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.
Environment Class
May 02, 2013
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.
Namespace:
Microsoft.Devices
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
The Environment type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | DeviceType | 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. |

