2016-06-10 8 views
2

Wie kann ich die vollständige Kontaktliste vom Telefon des Benutzers in UWP erhalten?Wie bekomme ich eine Kontaktliste von uwp C#?

Ich habe Artikel über msdn gefunden, aber diese verwenden nur Kontaktauswahl, die mir keine vollständige Liste der Kontakte gibt. Ich würde nur gerne ihre Namen und Profilbilder bekommen, ansonsten.

Antwort

2

ContactStore.FindContactsAsync

var contactStore = await ContactManager.RequestStoreAsync(); 
var contacts = await contactStore.FindContactsAsync(); 
+1

... und vergessen Sie bitte nicht die richtige Fähigkeit in Ihrem Manifest hinzuzufügen: https://stackoverflow.com/questions/31732418/contactmanager-requeststoreasync-throws-system- unauthorisedaccessexception/48836121 # 48836121 – Konstantin

Verwandte Themen