如何在Windows Phone 8中获取IMSI和IMEI?

Ilo*_*sta 3 windows-phone-8

我知道在Windows Phone 7中,获取IMSI和IMEI是不可能的.

有没有办法在Windows Phone 8中获取IMSI和IMEI

WmD*_*Dev 5

无法获取IMSI和IMEI号,但您可以使用设备唯一ID.

使用以下代码段获取设备唯一ID.

命名空间是

using Microsoft.Phone.Info;

object uniqueId;
var hexString = string.Empty;
if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId))
     hexString = BitConverter.ToString((byte[])uniqueId).Replace("-", string.Empty);
        MessageBox.Show("myDeviceID:" + hexString);
Run Code Online (Sandbox Code Playgroud)

希望能帮助到你