MimePart Class
A leaf MIME part: a text body or an attachment.
public sealed class MimePart : MimeEntity- Inheritance
MimeEntityMimePart
Constructors
| Name | Description |
|---|---|
| MimePart() | Initializes a new instance of the MimePart class with no content. |
MimePart()
MimePart.csInitializes a new instance of the MimePart class with no content.
public MimePart()Properties
| Name | Description |
|---|---|
| ContentTransferEncoding | Gets or sets the transfer encoding of the content, such as base64, quoted-printable or 7bit. |
| FileName | Gets the file name: the filename parameter of the disposition, or the name parameter of the content type. |
| IsAttachment | Gets whether the part is an attachment: its disposition is attachment. |
ContentTransferEncoding
MimePart.csFileName
MimePart.csIsAttachment
MimePart.csMethods
| Name | Description |
|---|---|
| GetContent() | Returns the decoded content of the part. |
| GetText() | Returns the content decoded as text with the charset of the part (UTF-8 or Latin-1 when it has none). |
| SetContent(byte[]) | Sets the content. The writer encodes it with the transfer encoding, which it chooses when the part has none. |
| SetText(string, string) | Sets a text content, in UTF-8. |