XhtmlTextWriter.AddRecognizedAttribute(String, String) 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.
Ajoute un attribut à un élément XHTML. La collection d'attributs spécifiques à un élément de l'objet XhtmlTextWriter est référencée par la propriété ElementSpecificAttributes.
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)
Paramètres
- elementName
- String
L'élément XHTML auquel ajouter l'attribut.
- attributeName
- String
L'attribut à ajouter.
Remarques
Utilisez la AddRecognizedAttribute méthode pour ajouter un attribut à un élément XHTML. L’attribut ajouté peut ensuite être reconnu et rendu par l’objet XhtmlTextWriter . Pour empêcher l’enregistreur de rendre un attribut commun d’un élément XHTML, utilisez la RemoveRecognizedAttribute méthode .
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour