BindingsCollection.AddCore(Binding) BindingsCollection.AddCore(Binding) BindingsCollection.AddCore(Binding) BindingsCollection.AddCore(Binding) Method

定義

Binding をコレクションに追加します。Adds a Binding to the collection.

protected:
 virtual void AddCore(System::Windows::Forms::Binding ^ dataBinding);
protected virtual void AddCore (System.Windows.Forms.Binding dataBinding);
abstract member AddCore : System.Windows.Forms.Binding -> unit
override this.AddCore : System.Windows.Forms.Binding -> unit
Protected Overridable Sub AddCore (dataBinding As Binding)

パラメーター

dataBinding
Binding Binding Binding Binding

コレクションに追加する BindingThe Binding to add to the collection.

例外

引数 dataBindingnull でした。The dataBinding argument was null.


Private Sub BindControl()
   Dim ds As DataSet
   ' Not shown: code to populate DataSet with tables.
   Text1.DataBindings.Add("Text", ds.Tables("Products"), "ProductName")
   Label1.DataBindings.Add("Text", ds.Tables("Suppliers"), "CompanyName")
   
End Sub
      

適用対象