MobileControl.GetAttribute メソッドとは何? わかりやすく解説 Weblio辞書 (original) (raw)

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

コントロールか指定した属性プロパティ取得します

名前空間: System.Web.UI.MobileControls
アセンブリ: System.Web.Mobile (system.web.mobile.dll 内)
構文構文

Visual Basic (宣言)

Protected Function GetAttribute ( _ name As String _ ) As String

Visual Basic (使用法)

Dim name As String Dim returnValue As String

returnValue = Me.GetAttribute(name)

C#

protected string GetAttribute ( string name )

C++

protected: String^ GetAttribute ( String^ name )

J#

protected String GetAttribute ( String name )

JScript

protected function GetAttribute ( name : String ) : String

パラメータ

name

サーバー コントロール属性の名前を指定する String

戻り値
指定した属性の値を表す **String**。指定した name を持つ属性存在しない場合null 参照 (Visual Basic では Nothing)。

解説解説

GetAttribute メソッドは、CustomAttributes プロパティ格納されている属性返しますCustomAttributesnull 参照 (Visual Basic では Nothing) の場合GetAttributenull 参照 (Visual Basic では Nothing) も返します

プラットフォームプラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォーム中には.NET Framework によってサポートされていないバージョンありますサポートされているバージョンについては、「システム要件」を参照してください

バージョン情報バージョン情報

.NET Framework
サポート対象 : 2.0

参照参照

関連項目
MobileControl クラス
MobileControl メンバ
System.Web.UI.MobileControls 名前空間
その他の技術情報
カスタム モバイル コントロール作成
ASP.NET モバイル コントロール内部