共用方式為


IHtmlContent.WriteTo(TextWriter, HtmlEncoder) 方法

定義

使用指定的 來撰寫內容,方法是將它編碼為指定的 encoderwriter

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

適用於