手机(设备)序列号 [英] Serial number of phone (device)

查看:41
本文介绍了手机(设备)序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获得唯一的电话号码(不是 SIM 卡、电话号码,而是设备号码!)??
诸如设备序列号、生产代码、IMEI 等?
我使用 Windows Phone 7.1

Is it possible to get unique number of phone (not SIM, phone number, but device number!) ??
Something like device serial number, producent code, IMEI etc?
I work with Windows Phone 7.1

推荐答案

object uniqueId;
var hexString = string.Empty;
if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId))
    hexString = BitConverter.ToString((byte[])uniqueId).Replace("-", string.Empty);

不要忘记在应用清单中指定 ID_CAP_IDENTITY_DEVICE 功能.

Dont forget to specify ID_CAP_IDENTITY_DEVICE capability in the app manifest.

这篇关于手机(设备)序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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