ImapEndSearch Method
Ends the pending asynchronous search request.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public MessageIndexCollection EndSearch()

Return Value

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