HtmlControl.IAttributeAccessor.GetAttribute(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
有关此成员的说明,请参阅 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,才能使用它。