| Visual Basic (Declaration) | |
|---|---|
Public Enum ContentEncoding Inherits System.Enum | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As ContentEncoding | |
| C# | |
|---|---|
public enum ContentEncoding : System.Enum | |
| Managed Extensions for C++ | |
|---|---|
__value public enum ContentEncoding : public System.Enum | |
| C++/CLI | |
|---|---|
public enum class ContentEncoding : public System.Enum | |
| Member | Description |
|---|---|
| Base64 | Base64 encoding. |
| Binary | Adds "Content-Transfer-Encoding: Binary" header line. |
| EightBit | Adds "Content-Transfer-Encoding: 8bit" header line. |
| None | No encoding. |
| QuotedPrintable | Quoted-Printable encoding. |
| SevenBit | Adds "Content-Transfer-Encoding: 7bit" header line. |
| Uuencode | UUEncode ("UNIX to UNIX") encoding. |
| Yencode | Yencode encoding. |
The SMTP protocol was designed to handle only 7-bit data. Eventually, the protocol was extended to support 8-bit data as well by the use of MIME. This enumeration specifies the encoding algorithm that is used to transform the data from 8-bit data to 7-bit data. Mail readers use this information to decode the received (encoded) data into it's original (decoded) form.
This enumeration is typically used to specify the encoding type used by a Stream that inherits from CodingStream, accessible through the CodingStream.MimeEncoding property. When a Stream that inherits from CodingStream is created the default value of the CodingStream.MimeEncoding property depends on the type of Stream being created. For example:
- An AttachmentStream represents a non-MIME attachment. AttachmentStream.MimeEncoding defaults to ContentEncoding.Uuencode.
- A MimeAttachmentStream represents a MIME attachment. MimeAttachmentStream.MimeEncoding defaults to ContentEncoding.Base64.
- A MessagePartStream represents simple MIME parts (such as MIME text). MessagePartStream.MimeEncoding defaults to ContentEncoding.QuotedPrintable.
SevenBit,EightBit, and Binary encodings are all raw 8-bit encodings, so there is no conversion.
System.Object
System.ValueType
System.Enum
Dart.PowerTCP.Mail.ContentEncoding
Target Platforms: Microsoft .NET Framework 2.0