Pop3GetMessageIndexFromUid Method |
Gets the message number of the message to which the specified Unique-ID is assigned.
Namespace: MailBee.Pop3MailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public int GetMessageIndexFromUid(
string uid
)
Public Function GetMessageIndexFromUid (
uid As String
) As Integer
Parameters
- uid
- Type: SystemString
Unique-ID string assigned to the message in the inbox.
Return Value
Type:
Int32The 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 Remarks
Unique-ID values are case-sensitive.
SomeValue and
SOMEVALUE
are NOT equivalent.
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