語言

ListItem.IAttributeAccessor.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

屬性名稱/值對的名稱成分。

傳回

指定屬性的值。

實作

備註

此成員為明確介面成員實作。 它只能在實 ListItem 例投射到 IAttributeAccessor 介面時使用。

適用於

另請參閱