Pop3Client.GetMessageUid Method

OpenPop.NET

OpenPop.NET POP3 Library Documentation

Pop3Client.GetMessageUid Method

Get a unique ID for a single message.

public string GetMessageUid(
   int messageNumber
);

Parameters

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

Exceptions

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