Pop3ClientListMessagesAsync Method (IConnection, Pop3ListFields, Boolean, MailQuery, CancellationToken)

Lists the messages.

Namespace:  Aspose.Email.Clients.Pop3
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<Pop3MessageInfoCollection> ListMessagesAsync(
	IConnection connection,
	Pop3ListFields fields,
	bool closeTransaction,
	MailQuery query,
	CancellationToken token
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
fields
Type: Aspose.Email.Clients.Pop3Pop3ListFields
The fields that we want get
closeTransaction
Type: SystemBoolean
Indicates if current transaction has to be closed, before the list is retrieved.
query
Type: Aspose.Email.Tools.SearchMailQuery
The MailQuery object.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

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