Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.

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

Syntax

Visual Basic
Public Sub GetMessagePart ( _
	sequenceNumber As Integer, _
	partId As String, _
	output As Stream _
)
C#
public void GetMessagePart(
	int sequenceNumber,
	string partId,
	Stream output
)

Parameters

sequenceNumber
Type: System..::..Int32
Message sequence number.
partId
Type: System..::..String
Message section (from Id).
output
Type: System.IO..::..Stream
Stream that will receive the part data.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also