IAsyncImapClient.FetchAttachmentAsync

IAsyncImapClient.FetchAttachmentAsync method

Fetches the specified attachment.

public Task<Attachment> FetchAttachmentAsync(int sequenceNumber, string attachmentName, 
    IConnection connection = null, CancellationToken token = default)
ParameterTypeDescription
connectionInt32Connection to a server.
sequenceNumberStringThe sequence number of a message.
attachmentNameIConnectionA name of attachment.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Attachment that represents the attachment.

See Also