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 介面時,才能使用這個成員。

適用於

另請參閱