Downloads the message with a specified number from the server and writes its data into a local file.

Namespace:  Rebex.Net
Assembly:  Rebex.Pop3 (in Rebex.Pop3.dll)

Syntax

Visual Basic
Public Function GetMessage ( _
	sequenceNumber As Integer, _
	fileName As String _
) As Long
C#
public long GetMessage(
	int sequenceNumber,
	string fileName
)

Parameters

sequenceNumber
Type: System..::..Int32
The sequence number of the message to download.
fileName
Type: System..::..String
The path of the local file. This cannot be a directory.

Return Value

The length of the message in bytes.

Remarks

Represents POP3 RETR command.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also