Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Imap.GetMessagePart Method

Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)

GetMessagePart(Int32, String)

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.

Declaration
public byte[] GetMessagePart(int sequenceNumber, string partId)
Parameters
Type Name Description
Int32 sequenceNumber

Message sequence number.

String partId

Message section (from Id).

Returns
Type Description
Byte[]

Raw data of the specified message section.

GetMessagePart(String, String)

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.

Declaration
public byte[] GetMessagePart(string uniqueId, string partId)
Parameters
Type Name Description
String uniqueId

Message unique ID.

String partId

Message section (from Id).

Returns
Type Description
Byte[]

Raw data of the specified message section.

GetMessagePart(Int32, String, Stream)

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.

Declaration
public void GetMessagePart(int sequenceNumber, string partId, Stream output)
Parameters
Type Name Description
Int32 sequenceNumber

Message sequence number.

String partId

Message section (from Id).

Stream output

Stream that will receive the part data.

GetMessagePart(String, String, Stream)

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.

Declaration
public void GetMessagePart(string uniqueId, string partId, Stream output)
Parameters
Type Name Description
String uniqueId

Message unique ID.

String partId

Message section (from Id).

Stream output

Stream that will receive the part data.

In This Article
  • GetMessagePart(Int32, String)
  • GetMessagePart(String, String)
  • GetMessagePart(Int32, String, Stream)
  • GetMessagePart(String, String, Stream)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies