Posted By

vhdm on 08/03/14


Tagged

phone windows device identify wp8 vhdm vahid mahmoudianunique Idfunction


Versions (?)

get windows phone unique id


 / Published in: C#
 

don't forgot to add capability IDCAPIDENTIFY_DEVICE

  1. private static string get_unique_id()
  2. {
  3. object uniqueId;
  4. var hexString = string.Empty;
  5. if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId))
  6. hexString = BitConverter.ToString((byte[])uniqueId).Replace("-", string.Empty);
  7. return hexString;
  8. }

Report this snippet  

You need to login to post a comment.