WebControl.IAttributeAccessor.SetAttribute(String, String) Method

Definition

Sets an attribute of the Web control to the specified name and value.

 virtual void System.Web.UI.IAttributeAccessor.SetAttribute(System::String ^ name, System::String ^ value) = System::Web::UI::IAttributeAccessor::SetAttribute;
void IAttributeAccessor.SetAttribute (string name, string value);
abstract member System.Web.UI.IAttributeAccessor.SetAttribute : string * string -> unit
override this.System.Web.UI.IAttributeAccessor.SetAttribute : string * string -> unit
Sub SetAttribute (name As String, value As String) Implements IAttributeAccessor.SetAttribute

Parameters

name
String

The name component of the attribute's name/value pair.

value
String

The value component of the attribute's name/value pair.

Implements

Remarks

The IAttributeAccessor.SetAttribute method is an explicit interface member implementation. It can be used only when the instance of the WebControl class is cast to an IAttributeAccessor interface.

Applies to

See also