RouteValues.SetAttribute Method (String, String)
Sets the value of the specified attribute.
Namespace: Microsoft.Web.Mvc.Controls
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
protected virtual void SetAttribute(
string key,
string value
)
protected:
virtual void SetAttribute(
String^ key,
String^ value
)
abstract SetAttribute :
key:string *
value:string -> unit
override SetAttribute :
key:string *
value:string -> unit
Protected Overridable Sub SetAttribute (
key As String,
value As String
)
Parameters
key
Type: System.StringThe key associated with the attribute.
value
Type: System.StringThe value of the specified attribute.
See Also
RouteValues Class
Microsoft.Web.Mvc.Controls Namespace
Return to top