目前我正在使用以下方法。我不確定這是否是識別每個獨特手機的正確方式(不需要具有相同的SIM卡)。爲Android有一個IMEI的手機什麼是正確的方式來獲得Windows Phone 7的唯一標識符?
public static String GetDeviceUniqueID()
{
object DeviceUniqueID;
byte[] DeviceIDbyte = null;
if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out DeviceUniqueID))
DeviceIDbyte = (byte[])DeviceUniqueID;
string DeviceID = Convert.ToBase64String(DeviceIDbyte);
return DeviceID;
}