ImapClientFetchMessageAsync Method (IConnection, Int32, Boolean, CancellationToken)

Fetches the message

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<MailMessage> FetchMessageAsync(
	IConnection connection,
	int sequenceNumber,
	bool ignoreAttachment,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
sequenceNumber
Type: SystemInt32
The sequence number of message
ignoreAttachment
Type: SystemBoolean
A value that defines whether the attachments should not be loaded. If it is set to true, then only message headers, message body and attachment information are fetched. Attachment content is not loaded
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

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