TagBuilder.MergeAttributes<TKey, TValue> Method (IDictionary<TKey, TValue>, Boolean)
Visual Studio 2010
Adds an attribute to the specified collection of attributes for the tag.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
public void MergeAttributes<TKey, TValue>( IDictionary<TKey, TValue> attributes, bool replaceExisting )
Type Parameters
- TKey
The type of the key.
- TValue
The type of the value.
Parameters
- attributes
- Type: System.Collections.Generic.IDictionary<TKey, TValue>
The attributes.
- replaceExisting
- Type: System.Boolean
true to replace the existing attributes.
Community Additions
ADD
Show: