BindingsCollection.AddCore(Binding) 메서드

정의

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입니다.The Binding to add to the collection.

예외

dataBinding 인수가 null인 경우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
      

적용 대상