XhtmlTextWriter.AddRecognizedAttribute(String, String) Método

Definição

Adiciona um atributo a um elemento XHTML.Adds an attribute to an XHTML element. A coleção de atributos específicos do elemento para o objeto XhtmlTextWriter é referenciado pela propriedade ElementSpecificAttributes.The collection of element-specific attributes for the XhtmlTextWriter object is referenced by the ElementSpecificAttributes property.

public:
 virtual void AddRecognizedAttribute(System::String ^ elementName, System::String ^ attributeName);
public virtual void AddRecognizedAttribute (string elementName, string attributeName);
abstract member AddRecognizedAttribute : string * string -> unit
override this.AddRecognizedAttribute : string * string -> unit
Public Overridable Sub AddRecognizedAttribute (elementName As String, attributeName As String)

Parâmetros

elementName
String

O elemento XHTML ao qual o atributo será adicionado.The XHTML element to add the attribute to.

attributeName
String

O atributo a ser adicionado.The attribute to add.

Comentários

Use o AddRecognizedAttribute método para adicionar um atributo a um elemento XHTML.Use the AddRecognizedAttribute method to add an attribute to an XHTML element. O atributo adicionado pode ser reconhecido e renderizado pelo XhtmlTextWriter objeto.The added attribute can then be recognized and rendered by the XhtmlTextWriter object. Para impedir que o gravador renderizasse um atributo comum de um elemento XHTML, use o RemoveRecognizedAttribute método.To prevent the writer from rendering a common attribute of an XHTML element, use the RemoveRecognizedAttribute method.

Aplica-se a

Confira também