Pop3ClientListMessagesAsync Method (IConnection, Pop3ListFields) |
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
)
Public Function ListMessagesAsync (
connection As IConnection,
fields As Pop3ListFields
) As Task(Of Pop3MessageInfoCollection)
public:
Task<Pop3MessageInfoCollection^>^ ListMessagesAsync(
IConnection^ connection,
Pop3ListFields fields
)
member ListMessagesAsync :
connection : IConnection *
fields : Pop3ListFields -> Task<Pop3MessageInfoCollection>
Parameters
- connection
- Type: Aspose.Email.ClientsIConnection
Connection to a server - fields
- Type: Aspose.Email.Clients.Pop3Pop3ListFields
The fields that we want get
Return Value
Type:
TaskPop3MessageInfoCollectionTask object, with delegate for this operation
RemarksNote that messages marked as deleted are not listed
See Also