IAttributeAccessor.SetAttribute メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IAttributeAccessor.SetAttribute メソッドの意味・解説 

IAttributeAccessor.SetAttribute メソッド

クラスによって実装された場合は、属性とその値を指定しASP.NET サーバー コントロール割り当てます

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

Sub SetAttribute ( _
    key As String, _
    value As String _
)
Dim instance As IAttributeAccessor
Dim key As String
Dim value As String

instance.SetAttribute(key, value)
void SetAttribute (
    string key,
    string value
)
void SetAttribute (
    String^ key, 
    String^ value
)
void SetAttribute (
    String key, 
    String value
)
function SetAttribute (
    key : String, 
    value : String
)

パラメータ

key

設定する属性の名前。

value

属性代入される値。

使用例使用例

SetAttribute メソッド実装する方法次のコード例示します

' Implement the SetAttribute method for the control. When
' this method is called from a page, the control's properties
' are set to values defined in the page.
Public Sub SetAttribute(name As
 String, value1 As String)
 Implements IAttributeAccessor.SetAttribute
   ViewState(name) = value1
End Sub 'SetAttribute

// Implement the SetAttribute method for the control. When
// this method is called from a page, the control's properties
// are set to values defined in the page.
public void SetAttribute(String name, String
 value1)
{
   ViewState[name] = value1;
}
// Implement the SetAttribute method for the control. When
// this method is called from a page, the control's properties
// are set to values defined in the page.
public void SetAttribute(String name, String
 value1)
{
    this.get_ViewState().set_Item(name, value1);
} //SetAttribute
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IAttributeAccessor インターフェイス
IAttributeAccessor メンバ
System.Web.UI 名前空間



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

辞書ショートカット

すべての辞書の索引

「IAttributeAccessor.SetAttribute メソッド」の関連用語

IAttributeAccessor.SetAttribute メソッドのお隣キーワード
検索ランキング

   

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



IAttributeAccessor.SetAttribute メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS