DeviceStatus Class (Microsoft.Phone.Info)

Switch View :
ScriptFree
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
Public property Static member ApplicationCurrentMemoryUsage Returns the memory usage of the current application in bytes.
Public property Static member ApplicationMemoryUsageLimit Returns the maximum amount of memory that your application process can allocate in bytes.
Public property Static member ApplicationPeakMemoryUsage Returns the peak memory usage of the current application in bytes.
Public property Static member DeviceFirmwareVersion Returns the firmware version running on the device.
Public property Static member DeviceHardwareVersion Returns the hardware version running on the device.
Public property Static member DeviceManufacturer Returns the device manufacturer name.
Public property Static member DeviceName Returns the device name.
Public property Static member DeviceTotalMemory Returns the physical RAM size of the device in bytes.
Public property Static member IsKeyboardDeployed Indicates whether the user has deployed the physical hardware keyboard of the device.
Public property Static member IsKeyboardPresent Indicates whether the device contains a physical hardware keyboard.
Public property Static member PowerSource Indicates whether the device is currently running on battery power or is plugged in to an external power supply.
Top
Events

  Name Description
Public event Static member KeyboardDeployedChanged Occurs when the keyboard has been deployed or closed.
Public event Static member PowerSourceChanged Occurs when the power source of the device changes.
Top
Remarks

For more information about the DeviceStatus API, see Device Status for Windows Phone.

Version Information

Windows Phone OS

Supported in: 7.1
Platforms

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

Reference