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)

public:
void MergeAttribute(
	String^ key, 
	String^ value
)

Parameters

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

ExceptionCondition
ArgumentException

The key parameter is nullptr or empty.

Community Additions

ADD
Show: