Page.CreateHtmlTextWriterFromType(TextWriter, Type) Page.CreateHtmlTextWriterFromType(TextWriter, Type) Page.CreateHtmlTextWriterFromType(TextWriter, Type) Page.CreateHtmlTextWriterFromType(TextWriter, Type) Method

定義

建立指定的 HtmlTextWriter 物件,以呈現頁面內容。Creates a specified HtmlTextWriter object to render the page's content.

public:
 static System::Web::UI::HtmlTextWriter ^ CreateHtmlTextWriterFromType(System::IO::TextWriter ^ tw, Type ^ writerType);
public static System.Web.UI.HtmlTextWriter CreateHtmlTextWriterFromType (System.IO.TextWriter tw, Type writerType);
static member CreateHtmlTextWriterFromType : System.IO.TextWriter * Type -> System.Web.UI.HtmlTextWriter
Public Shared Function CreateHtmlTextWriterFromType (tw As TextWriter, writerType As Type) As HtmlTextWriter

參數

writerType
Type Type Type Type

要建立的文字寫入器類型。The type of text writer to create.

傳回

呈現頁面內容的 HtmlTextWriterAn HtmlTextWriter that renders the content of the page.

例外狀況

writerType 參數設定為無效的類型。The writerType parameter is set to an invalid type.

備註

這個方法為內部使用,在頁面配置器。This method is used internally in page adapters.

適用於

另請參閱