Sdílet prostřednictvím


MobileControl.GetAttribute(String) Metoda

Definice

Načte zadanou vlastnost atributu z ovládacího prvku. Toto rozhraní API je zastaralé. Informace o tom, jak vyvíjet ASP.NET mobilní aplikace, najdete v tématu Mobile Apps & Weby s ASP.NET.

protected:
 System::String ^ GetAttribute(System::String ^ name);
protected string GetAttribute(string name);
member this.GetAttribute : string -> string
Protected Function GetAttribute (name As String) As String

Parametry

name
String

A String , který určuje název atributu řízení serveru.

Návraty

Představuje String hodnotu zadaného atributu; pokud neexistuje žádný atribut se zadaným name atributem, pak null.

Poznámky

Metoda GetAttribute vrací atributy uložené ve CustomAttributes vlastnosti. Pokud CustomAttributes je null, vrátí GetAttribute se také null.

Platí pro

Viz také