Search code examples
c#windows-phone-7contactsrawcontactid

How to get the ID of the contact on Windows Phone contact list?


I want to get ID of Contact List Application... Currently I am using class named PhoneNumberChooserTask like Chooser Class but I get only Number, Name, FullName. etc.. but how to get ID of that contact?


Solution

  • Yes It is possible,

    Contact c = new Contact();
    var Id = c.GetHashCode(); //gives the Id property value.