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
Syntaxpublic Task<ImapMessageInfoCollection> ListMessagesAsync(
bool retrieveRecursively,
CancellationToken token
)
Public Function ListMessagesAsync (
retrieveRecursively As Boolean,
token As CancellationToken
) As Task(Of ImapMessageInfoCollection)
public:
Task<ImapMessageInfoCollection^>^ ListMessagesAsync(
bool retrieveRecursively,
CancellationToken token
)
member ListMessagesAsync :
retrieveRecursively : bool *
token : CancellationToken -> Task<ImapMessageInfoCollection>
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:
TaskImapMessageInfoCollectionTask object, with delegate for this operation
See Also