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

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

BaseDataBoundControl.RequiresDataBinding プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

DataBind メソッド呼び出す必要があるかどうか示す値を取得または設定します

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

Protected Property RequiresDataBinding As
 Boolean
Dim value As Boolean

value = Me.RequiresDataBinding

Me.RequiresDataBinding = value
protected bool RequiresDataBinding { get;
 set; }
protected:
property bool RequiresDataBinding {
    bool get ();
    void set (bool value);
}
/** @property */
protected boolean get_RequiresDataBinding ()

/** @property */
protected void set_RequiresDataBinding (boolean
 value)
protected function get RequiresDataBinding
 () : boolean

protected function set RequiresDataBinding
 (value : boolean)

プロパティ
データ バインド コントロール表示前に、そのコントロールDataBind メソッド呼び出す必要がある場合は、 true返されます。それ以外場合false返されます。

解説解説
使用例使用例

次のコード例では、派生データ バインド コントロール クラスRequiresDataBinding プロパティ使用する方法示します。GetData メソッドデータ取得し、PerformDataBinding メソッドでそのデータコントロールバインドした後、RequiresDataBinding プロパティfalse設定し、さらに MarkAsDataBound メソッド呼び出してコントロールバインド完了していること、および現在のページ有効期間中はこのプロパティ必要ないことを示してます。このコード例は、DataBoundControl クラストピック取り上げているコード例一部分です。

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);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
BaseDataBoundControl クラス
BaseDataBoundControl メンバ
System.Web.UI.WebControls 名前空間
DataBind
BaseDataBoundControl.DataSourceID プロパティ


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

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

辞書ショートカット

すべての辞書の索引

「BaseDataBoundControl.RequiresDataBinding プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS