SocketTools .NET Edition

PopClient.OpenMessage Method (Int32)

Open the specified message for reading.

[Visual Basic]
Overloads Public Function OpenMessage( _
   ByVal messageId As Integer _
) As Boolean
[C#]
public bool OpenMessage(
   int messageId
);

Parameters

messageId
Number of article to retrieve from the server. This value must be greater than zero. The first message in the mailbox is message number one.

Return Value

This method returns a Boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

The OpenMessage method opens a message in the current mailbox. The client can then read the contents of the message using the Read method, and once all of the data has been read, the message should be closed by calling the CloseMessage method.

See Also

PopClient Class | SocketTools Namespace | PopClient.OpenMessage Overload List