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 Get
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 Get
Declaration
public byte[] GetMessagePart(string uniqueId, string partId)
Parameters
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 Get
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 Get
Declaration
public void GetMessagePart(string uniqueId, string partId, Stream output)