HtmlControl.IAttributeAccessor.GetAttribute(String) 方法

定义

有关此成员的说明,请参阅 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

参数

name
String

属性名称。

返回

作为值, String 元素上的此属性的值。 如果此元素上不存在指定的属性,则返回一个空字符串(“)。

实现

注解

该方法 IAttributeAccessor.GetAttribute 调用该方法 GetAttribute

此成员是显式接口成员实现。 仅当实例强制转换为HtmlControl接口时IAttributeAccessor,才能使用它。

适用于

另请参阅