Page.CreateHtmlTextWriterFromType(TextWriter, Type) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un objet spécifié HtmlTextWriter pour afficher le contenu de la page.
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
Paramètres
- tw
- TextWriter
Utilisé TextWriter pour créer le HtmlTextWriter.
- writerType
- Type
Type d’enregistreur de texte à créer.
Retours
Qui HtmlTextWriter restitue le contenu de la page.
Exceptions
Le writerType paramètre est défini sur un type non valide.
Remarques
Cette méthode est utilisée en interne dans les adaptateurs de page.