Hunny Software Library Reference

Imap4Client.UidSearch Method 

Sends a UID SEARCH command.

[Visual Basic]
Public Sub UidSearch( _
   ByVal charset As String, _
   ByVal criteria As String _
)
[C#]
public void UidSearch(
   string charset,
   string criteria
);

Parameters

charset
If not null, specifies the character encoding that applies to the search criteria.
criteria
A String containing the search criteria.

Remarks

A UID SEARCH command is similar to a SEARCH command, with one difference: when a UID SEARCH command is sent, the server's SEARCH response contains the unique identifiers (UIDs) of the matching messages instead of their sequence numbers.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | Search method | SearchResponse | UID command in the IMAP4 specification