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

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

DataBoundControl.CreateDataSourceSelectArguments メソッド

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

引数が未指定場合に、データ バインド コントロール使用する既定の DataSourceSelectArguments オブジェクト作成します

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

Protected Overridable Function
 CreateDataSourceSelectArguments As DataSourceSelectArguments
Dim returnValue As DataSourceSelectArguments

returnValue = Me.CreateDataSourceSelectArguments
protected virtual DataSourceSelectArguments CreateDataSourceSelectArguments
 ()
protected:
virtual DataSourceSelectArguments^ CreateDataSourceSelectArguments ()
protected DataSourceSelectArguments CreateDataSourceSelectArguments
 ()
protected function CreateDataSourceSelectArguments
 () : DataSourceSelectArguments

戻り値
Empty初期化された DataSourceSelectArguments

解説解説

CreateDataSourceSelectArguments メソッドは、SelectArguments プロパティ使用され既定引数オブジェクト初期化し、DataBoundControl クラス使用されて PerformSelect メソッド実装ます。

使用例使用例

派生クラスCreateDataSourceSelectArguments メソッド使用して既定DataSourceSelectArguments オブジェクト取得する方法次のコード例示します

Protected Overrides Sub
 PerformSelect()

    ' Call OnDataBinding here if bound to a data source using the 
    ' DataSource property (instead of a DataSourceID) because the 
    ' data-binding statement is evaluated before the call to GetData.
    If Not IsBoundUsingDataSourceID Then
        OnDataBinding(EventArgs.Empty)
    End If

    ' The GetData method retrieves the DataSourceView object from the
 
    ' IDataSource associated with the data-bound control.          
  
    GetData().Select(CreateDataSourceSelectArguments(), _
        AddressOf OnDataSourceViewSelectCallback)

    ' The PerformDataBinding method has completed.
    RequiresDataBinding = False
    MarkAsDataBound()

    ' Raise the DataBound event.
        OnDataBound(EventArgs.Empty)

End Sub 'PerformSelect

protected override void PerformSelect() { 
           

   // Call OnDataBinding here if bound to a data source using the
   // DataSource property (instead of a DataSourceID), because the
   // databinding statement is evaluated before the call to GetData.
       
    if (! IsBoundUsingDataSourceID) {
        OnDataBinding(EventArgs.Empty);
    }            
    
    // The GetData method retrieves the DataSourceView object from 
 
    // the IDataSource associated with the data-bound control.     
       
    GetData().Select(CreateDataSourceSelectArguments(), 
        OnDataSourceViewSelectCallback);
    
    // The PerformDataBinding method has completed.
    RequiresDataBinding = false;
    MarkAsDataBound();
    
    // Raise the DataBound event.
    OnDataBound(EventArgs.Empty);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataBoundControl クラス
DataBoundControl メンバ
System.Web.UI.WebControls 名前空間
SelectArguments
PerformSelect


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

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

辞書ショートカット

すべての辞書の索引

「DataBoundControl.CreateDataSourceSelectArguments メソッド」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS