WebControl.IAttributeAccessor.GetAttribute(String) Method

Definition

Gets an attribute of the Web control with the specified name.

 virtual System::String ^ System.Web.UI.IAttributeAccessor.GetAttribute(System::String ^ name) = System::Web::UI::IAttributeAccessor::GetAttribute;
string IAttributeAccessor.GetAttribute (string name);
Function GetAttribute (name As String) As String Implements IAttributeAccessor.GetAttribute

Parameters

name
String

The name of the attribute.

Returns

The value of the attribute.

Implements

Remarks

The IAttributeAccessor.GetAttribute 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