ImapEndSearch Method
Ends the pending asynchronous search request.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
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).
MailBeeExceptionAn error occurred and ThrowExceptions is true.
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