TextBodyPart Class |
Namespace: MailBee.Mime
The TextBodyPart type exposes the following members.
Name | Description | |
---|---|---|
TextBodyPart |
Creates a new instance of TextBodyPart object from the specified MimePart object.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAsTextReader |
Returns StringReader initialized with the text contents of this body part.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AsMimePart |
Gets the text part as MimePart object.
| |
Charset |
Gets or sets the charset of the text part contents.
| |
Headers |
Gets the collection of the text part headers.
| |
IsICalendar |
Gets if this body part contains iCal data entry (like meeting request or event).
| |
IsOriginal |
Indicates if the text part came with the message or it was
added automatically during parsing the message.
| |
Text |
Gets or sets the contents of the text part as a string.
| |
TransferEncoding |
Gets or sets the mail transfer encoding of the text part contents.
|
The MIME parts of the message can include text parts and attachments.
A MIME part is considered to be a text part if its ContentType starts with text/ and this part is not attachment. For instance, MIME parts of the following content types are text parts:
To get plain-text body of the message, use BodyPlainText property. To get HTML body, use BodyHtmlText property.
To access all the text parts (in the case if you need specific part, such as XML body if any), use BodyParts property.