IGmailClientAsync.CreateContactPhotoAsync
IGmailClientAsync.CreateContactPhotoAsync method
Asynchronously creates a contact photo.
public Task<ContactPhoto> CreateContactPhotoAsync(Contact contact, byte[] imageData,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| contact | Contact | The contact to associate the photo with. |
| imageData | Byte[] | The image data for the photo. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains the created ContactPhoto.
See Also
- class ContactPhoto
- class Contact
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email