Mime PartContent Transfer Encoding Property
Get or set the content transfer encoding.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The content transfer encoding.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public ContentEncoding ContentTransferEncoding { get; set; }Property Value
ContentEncodingThe content transfer encoding.
Implements
IMimePartContentTransferEncodingRemarks
The Content-Transfer-Encoding header specifies an auxiliary encoding
that was applied to the content in order to allow it to pass through
mail transport mechanisms (such as SMTP) which may have limitations
in the byte ranges that it accepts. For example, many SMTP servers
do not accept data outside the 7-bit ASCII range and so sending
binary attachments or even non-English text is not possible without
applying an encoding such as base64 or quoted-printable.
Exceptions
| ArgumentOutOfRangeException | value is not a valid content encoding. |
| ObjectDisposedException | The MimePart has been disposed. |