HtmlTextWriter.RegisterAttribute(String, HtmlTextWriterAttribute) Método

Definição

Regista atributos de marcação, sejam literais ou gerados dinamicamente, a partir do ficheiro de origem para que possam ser devidamente renderizados ao 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

Uma cadeia contendo o nome do atributo de marcação a registar.

key
HtmlTextWriterAttribute

E HtmlTextWriterAttribute que corresponde ao nome do atributo.

Observações

Os atributos pré-definidos da linguagem de marcação HTML são registados por chamadas ao RegisterAttribute método quando o primeiro HtmlTextWriter objeto é criado. Atributos dinâmicos podem ser registados utilizando o RegisterAttribute método noutros momentos.

A tabela de registo usada pelo RegisterAttribute método é static, pelo que o registo de atributos aplica-se a todos HtmlTextWriter os objetos no computador anfitrião.

Aplica-se a

Ver também