Share via


TagBuilder.MergeAttributes Method

Definition

Overloads

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

Adds new attributes to the tag.

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

Adds new attributes or optionally replaces existing attributes in the tag.

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

Adds new attributes to the 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))

Type Parameters

TKey

The type of the key object.

TValue

The type of the value object.

Parameters

attributes
IDictionary<TKey,TValue>

The collection of attributes to add.

Applies to

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

Adds new attributes or optionally replaces existing attributes in the 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)

Type Parameters

TKey

The type of the key object.

TValue

The type of the value object.

Parameters

attributes
IDictionary<TKey,TValue>

The collection of attributes to add or replace.

replaceExisting
Boolean

For each attribute in attributes, true to replace the attribute if an attribute already exists that has the same key, or false to leave the original attribute unchanged.

Applies to