質問

I want to get a unique id in windows phone 8 . I used DeviceUniqueId with the following code :

byte[] id = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId");
        iden = BitConverter.ToString(id).Replace("-", string.Empty);

now I want to convert it to int how can I do that ?

役に立ちましたか?

解決

you have string iden, convert it to int like this:

int devId= Convert.ToInt32(iden);

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top