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 ( _
	uniqueId As String, _
	partId As String _
) As Byte()
C#
public byte[] GetMessagePart(
	string uniqueId,
	string partId
)

Parameters

uniqueId
Type: System..::..String
Message unique ID.
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