IGmailClientAsync.CreateContactAsync

CreateContactAsync(Contact, CancellationToken)

Asynchronously creates a contact using the default email address.

public Task<string> CreateContactAsync(Contact contact, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
contactContactThe contact to create.
cancellationTokenCancellationTokenA cancellation token.

Return Value

A task that represents the asynchronous operation. The task result contains the contact URI.

See Also


CreateContactAsync(Contact, string, CancellationToken)

Asynchronously creates a contact with the specified email address.

public Task<string> CreateContactAsync(Contact contact, string emailAddress, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
contactContactThe contact to create.
emailAddressStringThe email address to use.
cancellationTokenCancellationTokenA cancellation token.

Return Value

A task that represents the asynchronous operation. The task result contains the contact URI.

See Also