Encoding Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
When overridden in a derived class, returns the character encoding in which the output is written.
Namespace: System.IO
Assembly: System.IO (in System.IO.dll)
Syntax
'Declaration
Public MustOverride ReadOnly Property Encoding As Encoding
public abstract Encoding Encoding { get; }
public:
virtual property Encoding^ Encoding {
Encoding^ get () abstract;
}
abstract Encoding : Encoding with get
abstract function get Encoding () : Encoding
Property Value
Type: System.Text. . :: . .Encoding
The character 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 enables the XML code to consume an arbitrary TextWriter and generate the correct XML header.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.