RepeaterItemCollection コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > RepeaterItemCollection コンストラクタの意味・解説 

RepeaterItemCollection コンストラクタ

RepeaterItemCollection クラス新しインスタンス初期化します。

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

Dim items As ArrayList

Dim instance As New RepeaterItemCollection(items)
public RepeaterItemCollection (
    ArrayList items
)
public:
RepeaterItemCollection (
    ArrayList^ items
)
public RepeaterItemCollection (
    ArrayList items
)
public function RepeaterItemCollection (
    items : ArrayList
)

パラメータ

items

コレクション初期化するために使用する項目を保持する System.Collections.ArrayList。

解説解説
使用例使用例
Sub Page_Load(Sender As Object,
 e As EventArgs)
   If Not IsPostBack Then
      Dim myDataSource As New
 ArrayList()

      myDataSource.Add(New PositionData("Item
 1", "$6.00"))
      myDataSource.Add(New PositionData("Item
 2", "$7.48"))
      myDataSource.Add(New PositionData("Item
 3", "$9.96"))

      ' Initialize the RepeaterItemCollection using the ArrayList as
 the data source.
      Dim myCollection As New
 RepeaterItemCollection(myDataSource)
      myRepeater.DataSource = myCollection
      myRepeater.DataBind()
   End If
End Sub 'Page_Load
void Page_Load(Object Sender, EventArgs e)
{
   if (!IsPostBack)
   {
      ArrayList myDataSource = new ArrayList();

      myDataSource.Add(new PositionData("Item 1", "$6.00"));
      myDataSource.Add(new PositionData("Item 2", "$7.48"));
      myDataSource.Add(new PositionData("Item 3", "$9.96"));
      
      // Initialize the RepeaterItemCollection using the ArrayList as
 the data source.
      RepeaterItemCollection myCollection = new RepeaterItemCollection(myDataSource);
      myRepeater.DataSource = myCollection;
      myRepeater.DataBind();
   }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RepeaterItemCollection クラス
RepeaterItemCollection メンバ
System.Web.UI.WebControls 名前空間
System.Collections.ArrayList



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

辞書ショートカット

すべての辞書の索引

「RepeaterItemCollection コンストラクタ」の関連用語

RepeaterItemCollection コンストラクタのお隣キーワード
検索ランキング

   

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



RepeaterItemCollection コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS