2
如何從UWP中的用戶手機獲取完整聯繫人列表?如何從uwp c#獲取聯繫人列表?
我在msdn上找到了文章,但是他們只使用聯繫人選擇器,它沒有給我一個完整的聯繫人列表。我只是想獲得他們的名字和個人資料圖片,並注意其他。
如何從UWP中的用戶手機獲取完整聯繫人列表?如何從uwp c#獲取聯繫人列表?
我在msdn上找到了文章,但是他們只使用聯繫人選擇器,它沒有給我一個完整的聯繫人列表。我只是想獲得他們的名字和個人資料圖片,並注意其他。
ContactStore.FindContactsAsync
var contactStore = await ContactManager.RequestStoreAsync();
var contacts = await contactStore.FindContactsAsync();
...請不要忘記在你的清單中添加適當的能力: https://stackoverflow.com/questions/31732418/contactmanager-requeststoreasync-throws-system- unauthorizedaccessexception/48836121#48836121 – Konstantin