แก้ไข

แชร์ผ่าน


HtmlControl.IAttributeAccessor.GetAttribute(String) Method

Definition

For a description of this member, see GetAttribute(String).

 virtual System::String ^ System.Web.UI.IAttributeAccessor.GetAttribute(System::String ^ name) = System::Web::UI::IAttributeAccessor::GetAttribute;
string IAttributeAccessor.GetAttribute (string name);
abstract member System.Web.UI.IAttributeAccessor.GetAttribute : string -> string
override this.System.Web.UI.IAttributeAccessor.GetAttribute : string -> string
Function GetAttribute (name As String) As String Implements IAttributeAccessor.GetAttribute

Parameters

name
String

The attribute name.

Returns

The value of this attribute on the element, as a String value. If the specified attribute does not exist on this element, returns an empty string ("").

Implements

Remarks

The IAttributeAccessor.GetAttribute method calls the GetAttribute method.

This member is an explicit interface member implementation. It can be used only when the HtmlControl instance is cast to an IAttributeAccessor interface.

Applies to

See also