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
Syntaxpublic Task<Pop3MessageInfoCollection> ListMessagesAsync(
IConnection connection,
Pop3ListFields fields,
bool closeTransaction,
MailQuery query,
CancellationToken token
)
Public Function ListMessagesAsync (
connection As IConnection,
fields As Pop3ListFields,
closeTransaction As Boolean,
query As MailQuery,
token As CancellationToken
) As Task(Of Pop3MessageInfoCollection)
public:
Task<Pop3MessageInfoCollection^>^ ListMessagesAsync(
IConnection^ connection,
Pop3ListFields fields,
bool closeTransaction,
MailQuery^ query,
CancellationToken token
)
member ListMessagesAsync :
connection : IConnection *
fields : Pop3ListFields *
closeTransaction : bool *
query : MailQuery *
token : CancellationToken -> Task<Pop3MessageInfoCollection>
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:
TaskPop3MessageInfoCollectionTask object, with delegate for this operation
See Also