Compartilhar via


BindingsCollection.AddCore(Binding) Método

Definição

Adiciona um Binding à coleção.

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)

Parâmetros

dataBinding
Binding

O Binding a adicionar à coleção.

Exceções

O argumento dataBinding é null.

Exemplos


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

Aplica-se a