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

Definition

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

Parameters

writerType
Type Type Type Type

The type of text writer to create.

Returns

An HtmlTextWriter that renders the content of the page.

Exceptions

The writerType parameter is set to an invalid type.

Remarks

This method is used internally in page adapters.

Applies to

See also