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)
ParameterTypeDescription
connectionPop3ListFieldsConnection to a server
fieldsBooleanThe fields that we want get
closeTransactionMailQueryIndicates if current transaction has to be closed, before the list is retrieved.
queryIConnectionThe MailQuery object.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also