IGmailClientAsync.CreateContactAsync
Contents
[
Hide
]CreateContactAsync(Contact, CancellationToken)
Asynchronously creates a contact using the default email address.
public Task<string> CreateContactAsync(Contact contact,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| contact | Contact | The contact to create. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains the contact URI.
See Also
- class Contact
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email
CreateContactAsync(Contact, string, CancellationToken)
Asynchronously creates a contact with the specified email address.
public Task<string> CreateContactAsync(Contact contact, string emailAddress,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| contact | Contact | The contact to create. |
| emailAddress | String | The email address to use. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains the contact URI.
See Also
- class Contact
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email