Downloads the specified part of the message. 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 Function GetMessagePart ( _
	sequenceNumber As Integer, _
	partId As String _
) As Byte()
C#
public byte[] GetMessagePart(
	int sequenceNumber,
	string partId
)

Parameters

sequenceNumber
Type: System..::..Int32
Message sequence number.
partId
Type: System..::..String
Message section (from Id).

Return Value

Raw data of the specified message section.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also