C# 使用;“联系方式”;用于使用Google API 2版在Google contact中搜索特定联系人

C# 使用;“联系方式”;用于使用Google API 2版在Google contact中搜索特定联系人,c#,google-contacts-api,C#,Google Contacts Api,目前,我正在搜索以下内容: Feed<Contact> f = contactsRequest.GetContacts(); foreach (Contact e in f.Entries) { if (e.Title == "MyContact") { MesageBox.Show("Contact already exist"); } } Feed f=contactsRequest.GetContacts();

目前,我正在搜索以下内容:

 Feed<Contact> f = contactsRequest.GetContacts();
    foreach (Contact e in f.Entries)
    {
     if (e.Title == "MyContact")
     {
    MesageBox.Show("Contact already exist");

     }
    }
Feed f=contactsRequest.GetContacts();
foreach(f.条目中的联系人e)
{
如果(如标题=“MyContact”)
{
MesageBox.Show(“联系人已存在”);
}
}
如果没有更少的联系人,这将正常工作。但是对于大量联系人,上面的代码将变慢


我读过关于“ContactsQuery”的文章。如何在上述场景中使用它?

不支持全文查询或通过电子邮件地址查找联系人

如果您想找到某个特定联系人,您必须检索所有联系人,然后自己搜索联系人,目前没有其他方法。
ContactsQuery允许您通过以下方式进行筛选:

NumberToRetrieve
StartIndex
StartDate
ShowDeleted
OrderBy
last-modifieddate
SortOrder
Group
和中定义的其他参数: