MailBee.NET Objects 3.1

Imap.EndSearch Method 

Ends the pending asynchronous search request.

public MessageIndexCollection EndSearch();

Return Value

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

Remarks

The type of the collection returned (UidCollection or MessageNumberCollection) depends on the value of returnUids parameter of BeginSearch method called to initiate the search.

Exceptions

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

See Also

Imap Class | MailBee.ImapMail Namespace | BeginSearch