Ends the pending asynchronous sorted search request.
On success, a UidCollection or MessageNumberCollection object representing the indices (UIDs or ordinal message numbers) of the found messages in the specified order; otherwise, a null reference (Nothing in Visual Basic).
The type of the collection returned (UidCollection or MessageNumberCollection) depends on the value of returnUids parameter of BeginSortedSearch method called to initiate the sorted search.
| Exception Type | Condition |
|---|---|
| MailBeeException | An error occurred and ThrowExceptions is true. |
Imap Class | MailBee.ImapMail Namespace | BeginSortedSearch