Ends the pending asynchronous search request.
On success, a UidCollection or MessageNumberCollection object representing the indices (UIDs or ordinal message numbers) of the found messages; 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 BeginSearch method called to initiate the search.
| Exception Type | Condition |
|---|---|
| MailBeeException | An error occurred and ThrowExceptions is true. |
Imap Class | MailBee.ImapMail Namespace | BeginSearch