語言

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 介面時使用。

適用於

另請參閱