Getting Physical Properties of WP7

If you dig deep into the Windows Phone 7 Application Development, you will find it is necessary to retrieve some of the properties of Windows Phone 7 of the user, for example the memory usage and Phone name, etc.

But how to do so?

We can query by using of DeviceExtendedProperties class.

All the supported properties are list in this page.

I will also post the code here

private static void physicalInformation()
{
string DeviceManufacturer¬†= DeviceExtendedProperties.GetValue(“DeviceManufacturer”).ToString();
string DeviceName = DeviceExtendedProperties.GetValue(“DeviceName”).ToString();
byte[] DeviceUniqueId¬†= DeviceExtendedProperties.GetValue(“DeviceUniqueId”).ToByte();
string DeviceFirmwareVersion¬†= DeviceExtendedProperties.GetValue(“DeviceFirmwareVersion”).ToString();
string DeviceHardwareVersion = DeviceExtendedProperties.GetValue(“DeviceHardwareVersion”).ToString();
string DeviceTotalMemory = DeviceExtendedProperties.GetValue(“DeviceTotalMemory”).ToString();
string ApplicationCurrentMemoryUsage¬†= DeviceExtendedProperties.GetValue(“ApplicationCurrentMemoryUsage”).ToString();
string ApplicationPeakMemoryUsage¬†=¬†DeviceExtendedProperties.GetValue(“ApplicationPeakMemoryUsage”).ToString();
}