MobileControl.GetAttribute(String) 方法

定義

從控制項中擷取指定之屬性 (Attribute) 的屬性 (Property)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with 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

參數

name
String

String,指定伺服器控制項屬性的名稱。

傳回

String,表示指定之屬性的值,如果指定之 name 的屬性不存在,則為 null

備註

方法會 GetAttribute 傳回儲存在屬性中的 CustomAttributes 屬性。 如果 CustomAttributesnull,則 GetAttribute 也會傳回 null

適用於

另請參閱