IHtmlContent.WriteTo(TextWriter, HtmlEncoder) Method

Definition

Writes the content by encoding it with the specified encoder to the specified writer.

public:
 void WriteTo(System::IO::TextWriter ^ writer, System::Text::Encodings::Web::HtmlEncoder ^ encoder);
public void WriteTo (System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder);
abstract member WriteTo : System.IO.TextWriter * System.Text.Encodings.Web.HtmlEncoder -> unit
Public Sub WriteTo (writer As TextWriter, encoder As HtmlEncoder)

Parameters

writer
TextWriter

The TextWriter to which the content is written.

encoder
HtmlEncoder

The HtmlEncoder which encodes the content to be written.

Applies to