HtmlTextWriter.RegisterAttribute(String, HtmlTextWriterAttribute) Método

Definición

Registra atributos de marcado, ya sean literales o generados dinámicamente, desde el archivo de origen para que se puedan representar correctamente en el cliente solicitante.

protected:
 static void RegisterAttribute(System::String ^ name, System::Web::UI::HtmlTextWriterAttribute key);
protected static void RegisterAttribute(string name, System.Web.UI.HtmlTextWriterAttribute key);
static member RegisterAttribute : string * System.Web.UI.HtmlTextWriterAttribute -> unit
Protected Shared Sub RegisterAttribute (name As String, key As HtmlTextWriterAttribute)

Parámetros

name
String

Cadena que contiene el nombre del atributo de marcado que se va a registrar.

key
HtmlTextWriterAttribute

que HtmlTextWriterAttribute corresponde al nombre del atributo.

Comentarios

Los atributos predefinidos del lenguaje de marcado HTML se registran mediante llamadas al RegisterAttribute método cuando se crea el primer HtmlTextWriter objeto. Los atributos dinámicos se pueden registrar mediante el RegisterAttribute método en otros momentos.

La tabla de registro usada por el RegisterAttribute método es static, por lo que el registro de atributos se aplica a todos los HtmlTextWriter objetos del equipo host.

Se aplica a

Consulte también