/// <summary>
/// 获取windows phone手机的唯一标识符
/// </summary>
/// <returns></returns>
public static string GetDeviceUniqueID()
{
object DeviceUniqueID;
byte[] DeviceIDbyte = null;
if (Microsoft.Phone.Info.DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out DeviceUniqueID))
DeviceIDbyte = (byte[])DeviceUniqueID;
string DeviceID = Convert.ToBase64String(DeviceIDbyte);
return DeviceID;
}
windows phone获取手机的唯一标识符
最新推荐文章于 2019-03-05 18:49:46 发布