2011-12-15 52 views
2

目前我正在使用以下方法。我不確定這是否是識別每個獨特手機的正確方式(不需要具有相同的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; 
    } 

回答

2

這似乎是從我已經閱讀最新的東西,建議的方式。

相關問題