Page.CreateHtmlTextWriterFromType(TextWriter, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立指定的 HtmlTextWriter 物件來渲染頁面內容。
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
參數
- tw
- TextWriter
用來 TextWriter 創造 HtmlTextWriter。
- writerType
- Type
應該創作的文字寫作者類型。
傳回
一個 HtmlTextWriter 呈現頁面內容的裝置。
例外狀況
參數 writerType 被設定為無效型別。
備註
此方法用於頁面介面卡內部。