Page.CreateHtmlTextWriterFromType(TextWriter, Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- tw
- TextWriter
The TextWriter used to create the HtmlTextWriter.
- writerType
- 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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.