Thetype exposes the following members.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Returns this MIME part and all its subparts as a flat list.
Serves as the default hash function.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
Gets the name-value list of body parameters.
Gets the charset of the MIME part.
Gets the Content-ID value of the MIME part.
Gets the content-type of the MIME part.
Gets the description of the MIME part.
Gets the disposition (attachment or inline) of the MIME part.
Gets the name-value list of disposition parameters.
Gets the body structure of the attached mail message.
Gets the envelope information of the attached mail message.
Gets the filename of the MIME part.
Indicates if the MIME part is multipart.
Get the language of the MIME part body.
Gets the body content URI of the MIME part.
Get the name of content transfer encoding the MIME part body is encoded to.
Gets the IMAP4 identifier of this MIME part.
Gets the filename of the MIME part, safe for saving to the filesystem under that name.
Gets the length of encoded body of the MIME part.
Gets the collection of nested parts of the multipart MIME part.
Gets the count of text lines of the MIME part of text type.
The IMAP4 protocol allows the client to query information about all MIME parts of a mail message without downloading the entire message. The server returns this information as a tree of body structures, where each body structure describes the corresponding MIME part and contains a list of nested body structures if the corresponding MIME part is multipart.
The common use of body structures is to list attachments of a mail message (see the sample code in Envelope topic). Another case is processing envelopes of international messages, because body structures contain charset settings of mail messages. When a body structure of a certain message is available, MailBee is able to decode the message envelope fields containing international characters more correctly.
When an entire message is downloaded, there is no need to download its body structure since all the required information is already available in the message data.
To access body structure information, the developer should request receiving body structures from the server when calling DownloadEnvelopes(String, Boolean, EnvelopeParts, Int32, String, String) method by setting BodyStructure flag in parts parameter value. A reference to the object representing the root MIME part of the mail message can then be obtained via BodyStructure property value.
By default, MailBee represents the body structure tree as a branching linked list. This reflects nested nature of MIME parts. However, it's often more convenient to get this tree as a simple collection. MailBee provides GetAllParts method for this.