Compartir a través de


Binding.BindingManagerBase Propiedad

Definición

Obtiene el objeto BindingManagerBase para este objeto Binding.

public:
 property System::Windows::Forms::BindingManagerBase ^ BindingManagerBase { System::Windows::Forms::BindingManagerBase ^ get(); };
public System.Windows.Forms.BindingManagerBase BindingManagerBase { get; }
public System.Windows.Forms.BindingManagerBase? BindingManagerBase { get; }
member this.BindingManagerBase : System.Windows.Forms.BindingManagerBase
Public ReadOnly Property BindingManagerBase As BindingManagerBase

Valor de propiedad

BindingManagerBase que administra este objeto Binding.

Ejemplos

En el ejemplo de código siguiente se obtiene de BindingManagerBase cada Binding uno de los formularios y se imprime la Position propiedad para cada BindingManagerBase.

private:
   void PrintPositions()
   {
      for each ( Control^ c in this->Controls )
      {
         for each ( Binding^ xBinding in c->DataBindings )
         {
            Console::WriteLine(
               "{0}\t Position: {1}",
               c, xBinding->BindingManagerBase->Position );
         }
      }
   }
private void PrintPositions()
{
   foreach(Control c in this.Controls)
   {
      foreach(Binding xBinding in c.DataBindings)
      {
         Console.WriteLine
         (c.ToString() + "\t Position: " + 
         xBinding.BindingManagerBase.Position);
      }
   }
}
Private Sub PrintPositions
    Dim c As Control
    Dim xBinding As Binding
    For Each c In Me.Controls
        For Each xBinding In c.DataBindings
            Console.WriteLine(c.ToString & ControlChars.Tab & " Position: " & _
                xBinding.BindingManagerBase.Position)
        Next
    Next
End Sub

Comentarios

BindingManagerBase Use para recorrer en iteración una lista enlazada a datos incrementando o disminuyendo la Position propiedad . La BindingManagerBase clase es abstracta. La CurrencyManager clase , que administra listas enlazadas a datos, hereda de la BindingManagerBase clase .

Se aplica a