Get Device info in windows phone development

Posted by Unknown
Get Device info in windows phone development

In this post am going to explain you how get Device info information of windows phone 7 application

Here is very small code snippet which will get the Device info information 




 Public void GetDeviceInfo()  
 {  
 string DeviceUniqueId=Convert.ToBase64String((byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId");  
  string DeviceModelName= null;  
       object theModel = null;  
  if (Microsoft.Phone.Info.DeviceExtendedProperties.TryGetValue("DeviceName", out theModel))  
    DeviceModelName= theModel as string;  
 }  

Hope this will helps you 
Labels:

Post a Comment

 
test