IAsyncPop3Client.ListMessagesAsync
IAsyncPop3Client.ListMessagesAsync method
Lists the messages.
public Task<Pop3MessageInfoCollection> ListMessagesAsync(
Pop3ListFields fields = Pop3ListFields.Main, bool closeTransaction = false,
MailQuery query = null, IConnection connection = null, CancellationToken token = default)
Parameter | Type | Description |
---|---|---|
connection | Pop3ListFields | Connection to a server |
fields | Boolean | The fields that we want get |
closeTransaction | MailQuery | Indicates if current transaction has to be closed, before the list is retrieved. |
query | IConnection | The MailQuery object. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class Pop3MessageInfoCollection
- enum Pop3ListFields
- class MailQuery
- interface IConnection
- interface IAsyncPop3Client
- namespace Aspose.Email.Clients.Pop3
- assembly Aspose.Email