MailBee.NET Objects 7.1

Imap.EndSortedSearch Method 

Ends the pending asynchronous sorted search request.

public MessageIndexCollection EndSortedSearch();

Return Value

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).

Remarks

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.

Exceptions

Exception Type Condition
MailBeeException An error occurred and ThrowExceptions is true.

See Also

Imap Class | MailBee.ImapMail Namespace | BeginSortedSearch