我尝试按照快速入门在 Windows Phone 8.1 SL 应用程序中获取联系信息:选择用户联系人
在我的功能中,
private async void PickAContactButton_Click(object sender, RoutedEventArgs e)
{
var contactPicker = new Windows.ApplicationModel.Contacts.ContactPicker();
contactPicker.desiredFieldsWithContactFieldType.add(Windows.ApplicationModel.Contacts.ContactFieldType.email);
Contact contact = await contactPicker.PickContactAsync(); // this throws System.NotImplementedException
// Additional information: The method or operation is not implemented.
if (contact != null)
{ ... }
}
完全相同的功能适用于 Windows Phone 8.1 RT。ContactPicker
根据此参考,WP 8.1 RT 和 WP 8.1 SL 都支持类。
知道发生了什么吗?