OpenPop.NET POP3 Library Documentation

Pop3Client.GetMessageUid Method

Get a unique ID for a single message.

public string GetMessageUid(
   int messageNumber


Message number, which may not be marked as deleted.
The messageNumber must be inside the range [1, messageCount]

Return Value

The unique ID for the message


Exception Type Condition
PopServerException If the server did not accept the UIDL command. This could happen if the messageNumber does not exist

See Also

Pop3Client Class | OpenPop.Pop3 Namespace