addressbook_contains_sync


Description:

[ Version ( since = "3.44" ) ]
public virtual bool addressbook_contains_sync (string book_uid, string email_address, Cancellable? cancellable = null) throws Error

Look up in an address book book_uid for an address email_address and returns whether any such contact exists.

The book_uid can be either one of the special constants camel_session_book_uid_any or camel_session_book_uid_completion, or it can be a UID of a configured address book.

The email_address can contain multiple addresses, then the function checks whether any of the given addresses is in the address book.

Parameters:

this

a Session

book_uid

an address book UID

email_address

an email address to check for

cancellable

optional Cancellable object, or null

Returns:

true, when the email_address could be found in the book_uid