The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DeviceStatus Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Allows an application to obtain information about the device on which it is running.


Namespace:  Microsoft.Phone.Info
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static class DeviceStatus

The DeviceStatus type exposes the following members.

Public propertyStatic memberApplicationCurrentMemoryUsageReturns the memory usage of the current application in bytes.
Public propertyStatic memberApplicationMemoryUsageLimitReturns the maximum amount of memory that your application process can allocate in bytes.
Public propertyStatic memberApplicationPeakMemoryUsageReturns the peak memory usage of the current application in bytes.
Public propertyStatic memberDeviceFirmwareVersionReturns the firmware version running on the device.
Public propertyStatic memberDeviceHardwareVersionReturns the hardware version running on the device.
Public propertyStatic memberDeviceManufacturerReturns the device manufacturer name.
Public propertyStatic memberDeviceNameReturns the device name.
Public propertyStatic memberDeviceTotalMemoryReturns the physical RAM size of the device in bytes.
Public propertyStatic memberIsKeyboardDeployedIndicates whether the user has deployed the physical hardware keyboard of the device.
Public propertyStatic memberIsKeyboardPresentIndicates whether the device contains a physical hardware keyboard.
Public propertyStatic memberPowerSourceIndicates whether the device is currently running on battery power or is plugged in to an external power supply.

Public eventStatic memberKeyboardDeployedChangedOccurs when the keyboard has been deployed or closed.
Public eventStatic memberPowerSourceChangedOccurs when the power source of the device changes.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

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.