ImapClient.FetchAttachmentAsync

FetchAttachmentAsync(IConnection, int, string)

Fetches the specified attachment

public Task<Attachment> FetchAttachmentAsync(IConnection connection, int sequenceNumber, 
    string attachmentName)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of a message
attachmentNameStringA name of attachment

Return Value

Task object, with delegate for this operation

See Also


FetchAttachmentAsync(int, string)

Fetches the specified attachment

public Task<Attachment> FetchAttachmentAsync(int sequenceNumber, string attachmentName)
ParameterTypeDescription
sequenceNumberInt32The sequence number of a message
attachmentNameStringA name of attachment

Return Value

Task object, with delegate for this operation

See Also


FetchAttachmentAsync(IConnection, int, string, CancellationToken)

Fetches the specified attachment

public Task<Attachment> FetchAttachmentAsync(IConnection connection, int sequenceNumber, 
    string attachmentName, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of a message
attachmentNameStringA name of attachment
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


FetchAttachmentAsync(int, string, CancellationToken)

Fetches the specified attachment

public Task<Attachment> FetchAttachmentAsync(int sequenceNumber, string attachmentName, 
    CancellationToken token)
ParameterTypeDescription
sequenceNumberInt32The sequence number of a message
attachmentNameStringA name of attachment
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also