ImapEndSortedSearch Method
Ends the pending asynchronous sorted search request.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public MessageIndexCollection EndSortedSearch()

Return Value

Type: MessageIndexCollection
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).
MailBeeExceptionAn error occurred and ThrowExceptions is true.
The type of the collection returned (UidCollection or MessageNumberCollection) depends on the value of returnUids parameter of BeginSortedSearch(Boolean, String, String, String, AsyncCallback, Object) method called to initiate the sorted search.
See Also