Page.CreateHtmlTextWriterFromType(TextWriter, Type) 方法
定义
创建指定的 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
参数
- tw
- TextWriter
用于创建 TextWriter 的 HtmlTextWriter。The TextWriter used to create the HtmlTextWriter.
- writerType
- Type
要创建的文本编写器的类型。The type of text writer to create.
返回
一个呈现页内容的 HtmlTextWriter。An 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.