IGmailClientAsync.GetContactAsync

GetContactAsync(Contact, CancellationToken)

Asynchronously retrieves a contact by its object.

public Task<Contact> GetContactAsync(Contact contact, CancellationToken cancellationToken = default)
ParameterTypeDescription
contactContactThe contact object.
cancellationTokenCancellationTokenA cancellation token.

Return Value

A task that represents the asynchronous operation. The task result contains the Contact.

See Also


GetContactAsync(string, CancellationToken)

Asynchronously retrieves a contact by its URI.

public Task<Contact> GetContactAsync(string contactUri, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
contactUriStringThe contact URI.
cancellationTokenCancellationTokenA cancellation token.

Return Value

A task that represents the asynchronous operation. The task result contains the Contact.

See Also