TagBuilder.MergeAttribute Method (String, String)

Visual Studio 2010

Adds an attribute to the tag by using the specified key/value pair.

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

'Declaration
Public Sub MergeAttribute ( _
	key As String, _
	value As String _
)

Parameters

key
Type: System.String
The key.
value
Type: System.String
The value.

ExceptionCondition
ArgumentException

The key parameter is Nothing or empty.

Community Additions

ADD
Show: