ImapClientFetchMessagesAsync Method (IConnection, IEnumerableInt32, CancellationToken)

Fetches the messages asynchronously

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<IList<MailMessage>> FetchMessagesAsync(
	IConnection connection,
	IEnumerable<int> sequenceNumbers,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
sequenceNumbers
Type: System.Collections.GenericIEnumerableInt32
The sequence numbers of the messages
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

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