WebControl.IAttributeAccessor.GetAttribute(String) 方法

定義

使用指定的名稱,取得 Web 控制項的屬性。

 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

屬性的名稱。

傳回

屬性的值。

實作

備註

方法是 IAttributeAccessor.GetAttribute 明確的介面成員實作。 只有在類別的 WebControl 實例轉換成 IAttributeAccessor 介面時,才能使用它。

適用於

另請參閱