PowerTCP Mail for .NET
ContentEncoding Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > CodingStream Class : ContentEncoding Property




Gets or sets the type of MIME content-encoding used to encode the data contained within the Stream.

Syntax

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.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.