TagBuilder.MergeAttributes Méthode

Définition

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 à