IGmailClientAsync.FetchMessageAsync
IGmailClientAsync.FetchMessageAsync method
Asynchronously fetches a Gmail message by its ID.
public Task<MailMessage> FetchMessageAsync(string id, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| id | String | The message ID. |
| cancellationToken | CancellationToken | A cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains the MailMessage.
See Also
- class MailMessage
- interface IGmailClientAsync
- namespace Aspose.Email.Clients.Google
- assembly Aspose.Email