HtmlString.WriteTo(TextWriter, HtmlEncoder) 方法

定义

通过使用指定的对内容进行编码来写入内容 encoder writer

public:
 virtual 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
override this.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用于对要写入的内容进行编码的。

实现

适用于