UserControl.Attributes プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > UserControl.Attributes プロパティの意味・解説 

UserControl.Attributes プロパティ

.aspx ファイル内のユーザー コントロール タグ宣言されすべての属性名と値ペアコレクション取得します

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

Dim instance As UserControl
Dim value As AttributeCollection

value = instance.Attributes
public AttributeCollection Attributes { get;
 }
public:
property AttributeCollection^ Attributes {
    AttributeCollection^ get ();
}
/** @property */
public AttributeCollection get_Attributes ()
public function get Attributes
 () : AttributeCollection

プロパティ
ユーザー コントロール タグ宣言されすべての名前と値ペア格納する AttributeCollection オブジェクト

使用例使用例

ユーザー コントロールAttributes プロパティ使用してカスタム コントロール タグ宣言されMessage 属性アクセスするコード例次に示しますページ上のユーザー コントロールは、このカスタム コントロール タグによってインスタンス化されています。

' Retrieve and display the 'Message' attribute tag 
' initialized in the .aspx code.
Response.Write("<b>Message tag value declared in the aspx
 file is : </b>" + myControl.Attributes("Message"))                    
// Retrieve and display the 'Message' attribute tag 
// initialized in the .aspx code.
Response.Write("<b>Message tag value declared in the
 aspx file is : </b>" + myControl.Attributes["Message"]);
void Page_Load(Object sender, System.EventArgs e)
{
     get_Response().Write(
        "<h2><b> User Control Properties Example</b></h2><br>");
     // Retrieve and display the 'Message' attribute tag 
    // initialized in the .aspx code.
     get_Response().Write(
        "<b>Message tag value declared in the aspx
 file is : </b>"
        + myControl.get_Attributes().get_Item("Message"));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からUserControl.Attributes プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からUserControl.Attributes プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からUserControl.Attributes プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

UserControl.Attributes プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



UserControl.Attributes プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS