GetNextUID Method

Official Content
This documentation is valid for:
Returns the UID of the following message.  

Syntax

&DataType.GetNextUID(UID)

Type Returned:
Numeric

Where:
UID
This parameter is Character, the UID of the following message in the present section.

Description

The UID is a chain that identifies each message in a unique manner. It is useful when messages received are kept in a database and are not deleted from the POP3 server.  In these cases, the UID of each message can be obtained before receiving the message, and this UID will be kept with the corresponding message. If there is already a message with the UID obtained, it is possible to skip it with the Skip method, instead of receiving it again.  This mechanism is particularly useful when using a POP3 server that does not support the NewMessages property. 

Some servers cannot support this method. In these cases, error 30 is received. 

Note:
This method returns an error code, so there is the possibility of calling it as a function (I.E.: &Err = &POP3Session.GetNextUID()).

Scope

Extended Data Types: POP3Session
Languages: .NET, Java, Visual FoxPro (up to GeneXus X Evolution 3)

See Also

POP3Session Data Type