TagBuilder.MergeAttributes Metoda

Definice

Přetížení

MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>)

Přidá do značky nové atributy.

MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>, Boolean)

Přidá nové atributy nebo volitelně nahradí existující atributy ve značce .

MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>)

Přidá do značky nové atributy.

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))

Parametry typu

TKey

Typ objektu klíče.

TValue

Typ objektu value.

Parametry

attributes
IDictionary<TKey,TValue>

Kolekce atributů, které chcete přidat.

Platí pro

MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>, Boolean)

Přidá nové atributy nebo volitelně nahradí existující atributy ve značce .

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)

Parametry typu

TKey

Typ objektu klíče.

TValue

Typ objektu value.

Parametry

attributes
IDictionary<TKey,TValue>

Kolekce atributů, které se mají přidat nebo nahradit.

replaceExisting
Boolean

Pro každý atribut v parametru attributestrue nahradí atribut , pokud již existuje atribut, který má stejný klíč, nebo hodnotu false, pokud původní atribut ponechá beze změny.

Platí pro