HtmlFormattableString.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 要写入的内容进行编码的 。

实现

适用于