共用方式為


HtmlString.WriteTo(TextWriter, HtmlEncoder) 方法

定義

使用指定的 將內容編碼為指定的 encoderwriter ,以寫入內容。

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 其會編碼要寫入的內容。

實作

適用於