HtmlTextWriter.Encoding Eigenschap

Definitie

Hiermee haalt u de codering op die door het HtmlTextWriter object wordt gebruikt om inhoud naar de pagina te schrijven.

public:
 virtual property System::Text::Encoding ^ Encoding { System::Text::Encoding ^ get(); };
public override System.Text.Encoding Encoding { get; }
member this.Encoding : System.Text.Encoding
Public Overrides ReadOnly Property Encoding As Encoding

Waarde van eigenschap

De Encoding markering waarin de markering naar de pagina wordt geschreven.

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de Encoding eigenschap gebruikt om het type codering te schrijven dat een aangepast besturingselement gebruikt om tekst weer te geven aan de pagina die het bevat.

// Get the value of the current markup writer's
// Encoding property, convert it to a string, and
// write it to the markup stream.
writer->Write( String::Concat( "Encoding : ", writer->Encoding, "<br>" ) );
// Get the value of the current markup writer's 
// Encoding property, convert it to a string, and 
// write it to the markup stream.
writer.Write("Encoding : " + writer.Encoding.ToString() + "<br>");
' Get the value of the current markup writer's 
' Encoding property, convert it to a string, and 
' write it to the HtmlTextWriter stream.
writer.Write(("Encoding : " + writer.Encoding.ToString() & "<br>"))

Opmerkingen

De Encoding eigenschap verkrijgt de waarde van het basisobject TextWriter .

Van toepassing op

Zie ook