Windows Phone Class Library
DeviceStatus Class
March 22, 2012
Allows an application to obtain information about the device on which it is running.
Inheritance Hierarchy
System.Object
Microsoft.Phone.Info.DeviceStatus
Namespace: Microsoft.Phone.Info
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Visual Basic (Declaration)
Public NotInheritable Class DeviceStatus
C#
public static class DeviceStatus
The DeviceStatus type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
|
ApplicationCurrentMemoryUsage | Returns the memory usage of the current application in bytes. |
|
ApplicationMemoryUsageLimit | Returns the maximum amount of memory that your application process can allocate in bytes. |
|
ApplicationPeakMemoryUsage | Returns the peak memory usage of the current application in bytes. |
|
DeviceFirmwareVersion | Returns the firmware version running on the device. |
|
DeviceHardwareVersion | Returns the hardware version running on the device. |
|
DeviceManufacturer | Returns the device manufacturer name. |
|
DeviceName | Returns the device name. |
|
DeviceTotalMemory | Returns the physical RAM size of the device in bytes. |
|
IsKeyboardDeployed | Indicates whether the user has deployed the physical hardware keyboard of the device. |
|
IsKeyboardPresent | Indicates whether the device contains a physical hardware keyboard. |
|
PowerSource | Indicates whether the device is currently running on battery power or is plugged in to an external power supply. |
Events
| Name | Description | |
|---|---|---|
|
KeyboardDeployedChanged | Occurs when the keyboard has been deployed or closed. |
|
PowerSourceChanged | Occurs when the power source of the device changes. |
Remarks
For more information about the DeviceStatus API, see Device Status for Windows Phone.
Version Information
Windows Phone OS
Supported in: 7.1Platforms
Windows Phone
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.See Also