Downloads the headers of a message with a specified number from the server and writes it into a supplied stream.

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

Syntax

Visual Basic
Public Function GetMessageHeaders ( _
	sequenceNumber As Integer, _
	output As Stream _
) As Long
C#
public long GetMessageHeaders(
	int sequenceNumber,
	Stream output
)

Parameters

sequenceNumber
Type: System..::..Int32
The sequence number of the message to download headers from.
output
Type: System.IO..::..Stream
Stream that will receive the message headers.

Return Value

The length of the headers in bytes.

Remarks

"Uses POP3 "TOP 1" command to retrieve the headers.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also