MvcControl.IAttributeAccessor.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
void IAttributeAccessor.SetAttribute(
string key,
string value
)
private:
virtual void SetAttribute(
String^ key,
String^ value
) sealed = IAttributeAccessor::SetAttribute
private abstract SetAttribute :
key:string *
value:string -> unit
private override SetAttribute :
key:string *
value:string -> unit
Private Sub SetAttribute (
key As String,
value As String
)
Implements IAttributeAccessor.SetAttribute
Parameters
key
Type: System.StringThe key.
value
Type: System.StringThe value of the attribute.
Implements
IAttributeAccessor.SetAttribute(String, String)
See Also
MvcControl Class
Microsoft.Web.Mvc.Controls Namespace
Return to top