Click or drag to resize
MimeKit

MimePartContentTransferEncoding Property

Gets or sets the content transfer encoding.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public ContentEncoding ContentTransferEncoding { get; set; }

Property Value

Type: ContentEncoding
The content transfer encoding.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is not a valid content encoding.
ObjectDisposedException The MimePart has been disposed.
Remarks
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 of 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.
See Also