Windows Phone 7
[wp7] 자기가 사용하는 기계 Model명을 얻고 싶을때
동동(이재동)
2011. 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/