我尝试在 WP8 创建自定义联系人存储。我的代码(来自 msdn):
async public void AddContact(string remoteId, string givenName, string familyName, string email, string codeName)
{
ContactStore store = await ContactStore.CreateOrOpenAsync();
}
private void Button_Click_1(object sender, RoutedEventArgs e)
{
AddContact("0", "Sample", "Sample", "sample@tut.by", "32");
}
当我单击按钮时,它会发生 System.UnauthorizedAccessException:访问被拒绝。.
我不明白,会发生什么?