IHtmlContent.WriteTo(TextWriter, HtmlEncoder) 方法

定义

通过使用指定的 encoder 将内容编码为指定的 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)

参数

writer
TextWriter

TextWriter 内容写入到的 。

encoder
HtmlEncoder

HtmlEncoder 要写入的内容进行编码的 。

适用于