Click or drag to resize

ImapClientListMessagesAsync Method (Boolean, CancellationToken)

Gets the list of messages in the current folder

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<ImapMessageInfoCollection> ListMessagesAsync(
	bool retrieveRecursively,
	CancellationToken token
)

Parameters

retrieveRecursively
Type: SystemBoolean
Indicates, if messages have to be retrieved recursively.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

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