IAsyncEwsClient.FetchAttachmentAsync

IAsyncEwsClient.FetchAttachmentAsync method

Fetches the attachment

public Task<Attachment> FetchAttachmentAsync(string attachmentUri, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
attachmentUriStringThe attachment uri. (Attachment uri can be retrieved using ListMessages(folder, ExchangeListMessagesOptions.FetchAttachmentInformation) method)
cancellationTokenCancellationTokenThe cancellation token.

Return Value

Attachment that represents fetched attachment

Exceptions

exceptioncondition
AsposeArgumentExceptionattachmentUri is null or empty

See Also