Partager via


Binding.BindingManagerBase Propriété

Définition

Obtient le BindingManagerBase pour ce 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

Valeur de propriété

BindingManagerBase qui gère ce Binding.

Exemples

L’exemple de code suivant obtient le BindingManagerBase de chaque Binding sur le formulaire et imprime la Position propriété pour chaque 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

Remarques

Utilisez pour BindingManagerBase itérer dans une liste liée aux données en incrémentant ou décrémentant la Position propriété. La BindingManagerBase classe est abstraite. La CurrencyManager classe, qui gère les listes liées aux données, hérite de la BindingManagerBase classe .

S’applique à