0
我想从我的应用程序和用户Google Mail联系人中删除联系人,我正在使用帮助程序文件。助手文件具有以下删除方法:MVC 3和谷歌联系人API
public static void Delete(string pGoogleUsername, string pGooglePassword, string EditUri)
{
RequestSettings rs = new RequestSettings("myApplication", pGoogleUsername, pGooglePassword);
rs.AutoPaging = true;
ContactsRequest cr = new ContactsRequest(rs);
***ContactsQuery query = new ContactsQuery();
query.Uri = new Uri(EditUri);
AtomFeed contacts = rs.Query(query);
AtomEntry entry = new AtomEntry();
entry = contacts.Entries[0];***
entry.Delete();
}
我觉得还行有关代码,除了明星中的代码。我在AtomFeed contacts = rs.Query(query);中的“查询”一词下面出现错误。
任何帮助,非常感谢。