TagBuilder.MergeAttributes 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.
Surcharges
MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>) |
Ajoute de nouveaux attributs à la balise. |
MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>, Boolean) |
Ajoute de nouveaux attributs ou remplace éventuellement des attributs existants dans la balise. |
MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>)
Ajoute de nouveaux attributs à la balise.
public void MergeAttributes<TKey,TValue> (System.Collections.Generic.IDictionary<TKey,TValue> attributes);
member this.MergeAttributes : System.Collections.Generic.IDictionary<'Key, 'Value> -> unit
Public Sub MergeAttributes(Of TKey, TValue) (attributes As IDictionary(Of TKey, TValue))
Paramètres de type
- TKey
Type de l'objet clé.
- TValue
Type de l'objet valeur.
Paramètres
- attributes
- IDictionary<TKey,TValue>
Collection d'attributs à ajouter.
S’applique à
MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>, Boolean)
Ajoute de nouveaux attributs ou remplace éventuellement des attributs existants dans la balise.
public void MergeAttributes<TKey,TValue> (System.Collections.Generic.IDictionary<TKey,TValue> attributes, bool replaceExisting);
member this.MergeAttributes : System.Collections.Generic.IDictionary<'Key, 'Value> * bool -> unit
Public Sub MergeAttributes(Of TKey, TValue) (attributes As IDictionary(Of TKey, TValue), replaceExisting As Boolean)
Paramètres de type
- TKey
Type de l'objet clé.
- TValue
Type de l'objet valeur.
Paramètres
- attributes
- IDictionary<TKey,TValue>
Collection d'attributs à ajouter ou remplacer.
- replaceExisting
- Boolean
Pour chaque attribut dans attributes
, true pour remplacer l’attribut s’il existe déjà un attribut qui a la même clé, ou false pour laisser l’attribut d’origine inchangé.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour