'find'에 해당되는 글 1건

  1. 2011.04.22 [wp7] 자기가 사용하는 기계 Model명을 얻고 싶을때
Windows Phone 72011. 4. 22. 13:50

WMAppManifest.xml 에

 

<Capability Name="ID_CAP_IDENTITY_DEVICE"/>

 

를 추가하고

 

string model = null;
object theModel = null;
 
if (Microsoft.Phone.Info.DeviceExtendedProperties.TryGetValue("DeviceName", out theModel))
    model = theModel as string;
MessageBox.Show(model);

 

를 코딩하면 된다.

 

출처 : http://www.nickharris.net/2011/01/finding-the-device-model-on-windows-phone-7/

Posted by 동동(이재동)