HtmlTextWriter.RegisterAttribute(String, HtmlTextWriterAttribute) Método

Definição

Registra os atributos de marcação, literais ou dinamicamente gerados, do arquivo de origem para que eles possam ser renderizados adequadamente para o 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 de caracteres que contém o nome do atributo de marcação a registrar.

key
HtmlTextWriterAttribute

Um HtmlTextWriterAttribute que corresponde ao nome do atributo.

Comentários

Os atributos predefinidos da linguagem de marcação HTML são registrados por chamadas para o RegisterAttribute método quando o primeiro HtmlTextWriter objeto é criado. Atributos dinâmicos podem ser registrados usando o RegisterAttribute método em outros momentos.

A tabela de registro usada pelo método éstatic, portanto, o RegisterAttribute registro de atributos se aplica a todos os HtmlTextWriter objetos no computador host.

Aplica-se a

Confira também