SocketTools .NET Edition

PopClient.LastMessage Property

Gets the number of the last message available in the current mailbox.

[Visual Basic]
Public ReadOnly Property LastMessage As Integer
[C#]
public int LastMessage {get;}

Property Value

An integer value which specifies the number of messages.

Remarks

The LastMessage property returns the number of the last message available in the currently selected mailbox. This value may be different than the value returned by the MessageCount property if one or more messages have been deleted. This is because the MessageCount property returns the number of available messages, and this value will decrement whenever a message is flagged for deletion. The LastMessage property value is constant and will always return the last message number in the mailbox, regardless if any messages have been deleted.

See Also

PopClient Class | SocketTools Namespace