4
我试图在WP8上创建定制联系商店。我的代码(从MSDN):WP8定制联系商店
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", "[email protected]", "32");
}
当我点击按钮,它出现System.UnauthorizedAccessException的:访问被拒绝。 。
我不明白,会发生什么?
在哪一行上触发异常?另外,你能否提供例外的细节? (消息,内部异常,如果有的话,callstack,...) –