2014-05-12 4 views

답변

0

전화 번호부에서만 연락처를 가져 오거나 찾을 수 있습니다. 전화 번호부에 새 연락처를 저장하거나 만들 API가 없다고 생각합니다. 다음은 Windows 8.1 범용 앱에서 연락처를 얻는 방법의 예입니다.

public async void FindContacts(string searchText) 
    { 
     ContactStore contactStore = await ContactManager.RequestStoreAsync(); 

     IReadOnlyList<Contact> contacts = null; 

     if (String.IsNullOrEmpty(searchText)) 
     { 
      contacts = await contactStore.FindContactsAsync(); 
     } 
     else 
     { 
      contacts = await contactStore.FindContactsAsync(searchText); 
     } 

    } 
관련 문제