Nyelv

HtmlControl.IAttributeAccessor.GetAttribute(String) Metódus

Definíció

Ennek a tagnak a leírását lásd 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

Paraméterek

name
String

Az attribútum neve.

Válaszok

Ennek az attribútumnak az értéke az elemen értékként String . Ha a megadott attribútum nem létezik ezen az elemen, egy üres sztringet ("") ad vissza.

Megvalósítás

Megjegyzések

A IAttributeAccessor.GetAttribute metódus meghívja a metódust GetAttribute .

Ez a tag egy explicit felületi tag implementációja. Csak akkor használható, ha a HtmlControl példányt egy IAttributeAccessor felületre öntötték.

A következőre érvényes:

Lásd még