ImapClientFetchAttachmentAsync Method (IConnection, Int32, String, CancellationToken)

Fetches the specified attachment

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<Attachment> FetchAttachmentAsync(
	IConnection connection,
	int sequenceNumber,
	string attachmentName,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
sequenceNumber
Type: SystemInt32
The sequence number of a message
attachmentName
Type: SystemString
A name of attachment
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: TaskAttachment
Task object, with delegate for this operation
See Also