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

Namespace:  Rebex.Net
Assembly:  Rebex.Imap (in Rebex.Imap.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
Message sequence number.
output
Type: System.IO..::..Stream
Stream that will receive the message headers.

Return Value

The length of the headers in bytes.

Remarks

Uses IMAP FETCH command to retrieve the headers.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also