Page.CreateHtmlTextWriterFromType(TextWriter, Type) Method

Definition

Crea un oggetto HtmlTextWriter specificato per il rendering del contenuto della pagina.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

Classe TextWriter utilizzata per creare l'oggetto HtmlTextWriter.The TextWriter used to create the HtmlTextWriter.

writerType
Type

Tipo di writer di testo da creare.The type of text writer to create.

Returns

HtmlTextWriter

Un oggetto HtmlTextWriter che esegue il rendering del contenuto della pagina.An HtmlTextWriter that renders the content of the page.

Exceptions

Il parametro writerType è impostato su un tipo non valido.The writerType parameter is set to an invalid type.

Remarks

Questo metodo viene utilizzato internamente negli adattatori di pagina.This method is used internally in page adapters.

Applies to

See also