Condividi tramite


TagBuilder.MergeAttributes Metodo

Definizione

Overload

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

Aggiunge nuovi attributi al tag.

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

Aggiunge nuovi attributi o, facoltativamente, sostituisce gli attributi esistenti nel tag.

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

Aggiunge nuovi attributi al tag.

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

Parametri di tipo

TKey

Tipo dell'oggetto chiave.

TValue

Tipo dell'oggetto valore.

Parametri

attributes
IDictionary<TKey,TValue>

Raccolta di attributi da aggiungere.

Si applica a

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

Aggiunge nuovi attributi o, facoltativamente, sostituisce gli attributi esistenti nel tag.

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)

Parametri di tipo

TKey

Tipo dell'oggetto chiave.

TValue

Tipo dell'oggetto valore.

Parametri

attributes
IDictionary<TKey,TValue>

Raccolta di attributi da aggiungere o sostituire.

replaceExisting
Boolean

Per ogni attributo in attributes, true per sostituire l'attributo se esiste già un attributo con la stessa chiave o false per lasciare invariato l'attributo originale.

Si applica a