Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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)
Syntax
'Declaration
Public Sub MergeAttribute ( _
key As String, _
value As String, _
replaceExisting As Boolean _
)
public void MergeAttribute(
string key,
string value,
bool replaceExisting
)
public:
void MergeAttribute(
String^ key,
String^ value,
bool replaceExisting
)
Parameters
- key
Type: System.String
The key.
- value
Type: System.String
The value.
- replaceExisting
Type: System.Boolean
true to replace the existing attribute.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The key parameter is null reference (Nothing in Visual Basic) or empty. |