IAsyncEwsClient.FetchAttachmentAsync
IAsyncEwsClient.FetchAttachmentAsync method
Fetches the attachment
public Task<Attachment> FetchAttachmentAsync(string attachmentUri,
CancellationToken cancellationToken = default)
Parameter | Type | Description |
---|---|---|
attachmentUri | String | The attachment uri. (Attachment uri can be retrieved using ListMessages(folder, ExchangeListMessagesOptions.FetchAttachmentInformation) method) |
cancellationToken | CancellationToken | The cancellation token. |
Return Value
Attachment
that represents fetched attachment
Exceptions
exception | condition |
---|---|
AsposeArgumentException | attachmentUri is null or empty |
See Also
- class Attachment
- interface IAsyncEwsClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email