可以将联系人过滤器类型替换为 cons.SearchAsync 中的联系人存储类型。
C#代码:
FilterKind contactFilterKind = FilterKind.None;
StorageKind contactStorageKind = StorageKind.Phone;
ContactResultsData.DataContext = this.DisplayedContacts;
ContactResultsLabel.Text = "results are loading...";
ContactResultsData.DataContext = null;
Contacts cons = new Contacts();
// ContactResultsData.DataContext = cons;
cons.SearchCompleted += new EventHandler<ContactsSearchEventArgs>(Contacts_SearchCompleted);
cons.SearchAsync(contactFilterString.Text, contactFilterKind, "Contacts Test #1");