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

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

CurrencyManager.ResumeBinding メソッド

データ バインディング再開します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Overrides Sub ResumeBinding
Dim instance As CurrencyManager

instance.ResumeBinding
public override void ResumeBinding ()
public:
virtual void ResumeBinding () override
public void ResumeBinding ()
解説解説

SuspendBinding と ResumeBinding は、単純データ バインディングにおいて、一時的な中断再開可能にする 2 つメソッドです。通常検証発生する前にユーザーデータ フィールド編集許可する必要がある場合は、データ連結中断します。たとえば、最初フィールド2 番目のフィールドに従って変更する必要がある場合は、最初フィールド検証され時点2 番目のフィールドエラー発生します

メモメモ

SuspendBinding使用すると、ResumeBinding呼び出されるまでデータ ソース変更反映されませんが、データ ソース変更によるバインド コントロールへの影響抑制されることはありません。DataGridView コントロールなど、複合データ バインディング使用するコントロールでは、ListChanged イベントなど変更イベント基づいて値が更新されます。このメソッド呼び出しても、これらのイベントの発生抑制されません。したがってSuspendBinding および ResumeBinding は、TextBox など単純バインド コントロール使用する目的設計されています。ただし、RaiseListChangedEvents プロパティfalse設定して、ListChanged イベントの発生中断している場合は、これらのメソッド複合バインディング使用できます

使用例使用例
Private Sub button4_Click(sender As
 Object, e As EventArgs)
   Try
      Dim myBindingManager2 As BindingManagerBase
 = BindingContext(myDataSet, "Customers")
      myBindingManager2.ResumeBinding()
   Catch ex As Exception
      MessageBox.Show(ex.Source.ToString())
      MessageBox.Show(ex.Message.ToString())
   End Try
End Sub 'button4_Click
private void button4_Click(object sender, EventArgs
 e)
{
   try
   {
      BindingManagerBase myBindingManager2=BindingContext [myDataSet, "Customers"];
      myBindingManager2.ResumeBinding();
   }
   catch(Exception ex)
   {
      MessageBox.Show(ex.Source);
      MessageBox.Show(ex.Message);
   }
}
void button4_Click( Object^ /*sender*/, EventArgs^ /*e*/ )
{
   try
   {
      BindingManagerBase^ myBindingManager2 = BindingContext[ myDataSet, "Customers"
 ];
      myBindingManager2->ResumeBinding();
   }
   catch ( Exception^ ex ) 
   {
      MessageBox::Show( ex->Source );
      MessageBox::Show( ex->Message );
   }
}
private void button4_Click(Object sender, EventArgs
 e)
{
    try {
        BindingManagerBase myBindingManager2 = 
            get_BindingContext().get_Item(myDataSet, "Customers");
        myBindingManager2.ResumeBinding();
    }
    catch (System.Exception ex) {
        MessageBox.Show(ex.get_Source());
        MessageBox.Show(ex.get_Message());
    }
} //button4_Click
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CurrencyManager クラス
CurrencyManager メンバ
System.Windows.Forms 名前空間
BindingSource.RaiseListChangedEvents プロパティ
BindingManagerBase.BindingComplete イベント
SuspendBinding
UpdateIsBinding
BindingManagerBase.Bindings プロパティ


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS