如何在 Windows Phone 8 中获取 IMSI 和 IMEI? [英] How can I get IMSI and IMEI in Windows Phone 8?

查看:33
本文介绍了如何在 Windows Phone 8 中获取 IMSI 和 IMEI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在 Windows Phone 7 中,无法获取 IMSI 和 IMEI.

I know in Windows Phone 7, it is impossible to get the IMSI and IMEI.

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

Is there a way to get IMSI and IMEI in Windows Phone 8?

推荐答案

没有办法获取 IMSI 和 IMEI 号码,但是您可以使用设备唯一 ID.

There is no way to get IMSI and IMEI number, however you can use the device unique Id.

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

Use the following code snippet to get the device unique 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);

希望能帮到你

这篇关于如何在 Windows Phone 8 中获取 IMSI 和 IMEI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆