FetchAttachmentAsync

ImapClient.FetchAttachmentAsync method (1 of 4)

Fetches the specified attachment

public Task<Attachment> FetchAttachmentAsync(IConnection connection, int sequenceNumber, 
    string attachmentName)
Parameter Type Description
connection IConnection Connection to a server
sequenceNumber Int32 The sequence number of a message
attachmentName String A name of attachment

Return Value

Task object, with delegate for this operation

See Also


ImapClient.FetchAttachmentAsync method (2 of 4)

Fetches the specified attachment

public Task<Attachment> FetchAttachmentAsync(int sequenceNumber, string attachmentName)
Parameter Type Description
sequenceNumber Int32 The sequence number of a message
attachmentName String A name of attachment

Return Value

Task object, with delegate for this operation

See Also


ImapClient.FetchAttachmentAsync method (3 of 4)

Fetches the specified attachment

public Task<Attachment> FetchAttachmentAsync(IConnection connection, int sequenceNumber, 
    string attachmentName, CancellationToken token)
Parameter Type Description
connection IConnection Connection to a server
sequenceNumber Int32 The sequence number of a message
attachmentName String A name of attachment
token CancellationToken Propagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ImapClient.FetchAttachmentAsync method (4 of 4)

Fetches the specified attachment

public Task<Attachment> FetchAttachmentAsync(int sequenceNumber, string attachmentName, 
    CancellationToken token)
Parameter Type Description
sequenceNumber Int32 The sequence number of a message
attachmentName String A name of attachment
token CancellationToken Propagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also