MailBee.NET Objects 4.0

Pop3.GetMessageIndexFromUid Method 

Gets the message number of the message to which the specified Unique-ID is assigned.

public int GetMessageIndexFromUid(
   string uid
);

Parameters

uid
Unique-ID string assigned to the message in the inbox.

Return Value

The message number (in the range 1 to InboxMessageCount) of the message to which the server has assigned the specified Unique-ID, or 0 if the inbox does not contain the message with the given Unique-ID.

Remarks

Note   Unique-ID values are case-sensitive. SomeValue and SOMEVALUE are NOT equivalent.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException The uid is a null reference (Nothing in Visual Basic).
MailBeeException An error occurred and ThrowExceptions is true.

See Also

Pop3 Class | MailBee.Pop3Mail Namespace | GetMessageUidFromIndex | InboxPreloadOptions