TagBuilder.MergeAttribute Method (String, String, Boolean)
Visual Studio 2010
Adds an attribute to the tag by using the specified key/value pair.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Sub MergeAttribute ( _ key As String, _ value As String, _ replaceExisting As Boolean _ )
Parameters
- key
- Type: System.String
The key.
- value
- Type: System.String
The value.
- replaceExisting
- Type: System.Boolean
true to replace the existing attribute.
| Exception | Condition |
|---|---|
| ArgumentException | The key parameter is Nothing or empty. |
Community Additions
ADD
Show: