Reputation: 1386
Currently i am searching particular as below:
Feed<Contact> f = contactsRequest.GetContacts();
foreach (Contact e in f.Entries)
{
if (e.Title == "MyContact")
{
MesageBox.Show("Contact already exist");
}
}
This will work fine if no of contacts are less.But above code will become slow for large no of contacts.
I read about "ContactsQuery".How can i use it for above scenario ?
Upvotes: 0
Views: 815
Reputation: 74164
There is no support for full-text queries or locating a contact by email address
If you want to find a particular contact, you have to retrieve all contacts then search for the contact yourself, there's no other way at the moment.
ContactsQuery allow you to filter by:
NumberToRetrieve
StartIndex
StartDate
ShowDeleted
OrderBy
last-modifieddate
SortOrder
Group
and other parameters defined in:
Contact Data API reference
Google Data API refence
Google.GData.Contacts namespace
Upvotes: 1