MobileControl.GetAttribute(String) メソッド

定義

コントロールから指定した属性のプロパティを取得します。 この API は、互換性のために残されています。 ASP.NET モバイル アプリケーションを開発する方法については、「ASP.NET を使用した Mobile Apps & サイト」を参照してください。

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 返します。 が の場合CustomAttributesは、 GetAttribute も 返nullnullされます。

適用対象

こちらもご覧ください