MobileControl.GetAttribute(String) Metoda

Definicja

Pobiera określoną właściwość atrybutu z kontrolki. Ten interfejs API jest nieaktualny. Aby uzyskać informacje o sposobie tworzenia aplikacji mobilnych ASP.NET, zobacz Mobile Apps & Sites with ASP.NET (Aplikacje mobilne & z 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

Element String określający nazwę atrybutu kontroli serwera.

Zwraca

Reprezentująca String wartość określonego atrybutu; jeśli żaden atrybut z określonym name atrybutem nie istnieje, to null.

Uwagi

Metoda GetAttribute zwraca atrybuty przechowywane we CustomAttributes właściwości. Jeśli CustomAttributes wartość to null, GetAttribute zwróci również wartość null.

Dotyczy

Zobacz też