| Visual Basic (Declaration) | |
|---|---|
Public Property ContentEncoding As ContentEncoding | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As CodingStream Dim value As ContentEncoding instance.ContentEncoding = value value = instance.ContentEncoding | |
| C# | |
|---|---|
public ContentEncoding ContentEncoding {get; set;} | |
| Managed Extensions for C++ | |
|---|---|
public: __property ContentEncoding get_ContentEncoding(); public: __property void set_ContentEncoding( ContentEncoding value ); | |
| C++/CLI | |
|---|---|
public: property ContentEncoding ContentEncoding { ContentEncoding get(); void set ( ContentEncoding value); } | |
Property Value
A ContentEncoding Type specifying the type of encoding used to encode the data contained within the Stream.Specifies the encoding algorithm that was used to create the encoded MIME part. Mail readers use this information to decode the received (encoded) data into it's original (decoded) form.
The default value of this 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.
Target Platforms: Microsoft .NET Framework 2.0
Copy Code