Freigeben über


TagBuilder.MergeAttributes<TKey, TValue> Method (IDictionary<TKey, TValue>, Boolean)

Adds an attribute to the specified collection of attributes for the tag.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Sub MergeAttributes(Of TKey, TValue) ( _
    attributes As IDictionary(Of TKey, TValue), _
    replaceExisting As Boolean _
)
public void MergeAttributes<TKey, TValue>(
    IDictionary<TKey, TValue> attributes,
    bool replaceExisting
)
public:
generic<typename TKey, typename TValue>
void MergeAttributes(
    IDictionary<TKey, TValue>^ attributes, 
    bool replaceExisting
)

Type Parameters

  • TKey
    The type of the key.
  • TValue
    The type of the value.

Parameters

  • replaceExisting
    Type: System.Boolean
    true to replace the existing attributes.

See Also

Reference

TagBuilder Class

MergeAttributes Overload

System.Web.Mvc Namespace