TextWriter: Encoding (get)

Encoding

When implemented in a derived class, returns the Encoding in which the output is written.



 Public Property Get Encoding ( ) As Encoding

Return Values

Encoding -  The Encoding in which the output is written.

Remarks

This property is necessary for some XML scenarios where a header must be written containing the encoding used by the TextWriter. This allows the XML code to consume an arbitrary TextWriter and generate the correct XML header.

Read Only.

See Also

Project CorLib Overview

Class TextWriter Overview