我试图在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@tut.by","32"); }
当我点击按钮时,它会发生System.UnauthorizedAccessException:访问被拒绝. .
我不明白,会发生什么?