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

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public int GetMessageIndexFromUid(
	string uid
)

Parameters

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

Return Value

Type: Int32
The message number (in the range from 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.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionThe uid is a null reference (Nothing in Visual Basic).
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks
Unique-ID values are case-sensitive. SomeValue and SOMEVALUE are NOT equivalent.
Note Note
This method may issue a network operation if the UID list has not yet been downloaded from the POP3 server during login (see InboxPreloadOptions). To make sure you have the local copy of the list, call GetMessageUids first (or its async version).
See Also