ImapClientListMessagesByPageAsync Method (MailQuery, PageInfo, PageSettings, CancellationToken)

Gets the list of messages

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<ImapPageInfo> ListMessagesByPageAsync(
	MailQuery query,
	PageInfo pageInfo,
	PageSettings settings,
	CancellationToken token
)

Parameters

query
Type: Aspose.Email.Tools.SearchMailQuery
MailQuery that represents search query.
pageInfo
Type: Aspose.Email.ClientsPageInfo
The next page to retrieve.
settings
Type: Aspose.Email.Clients.ImapPageSettings
The settings.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

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