Binding.IsBinding Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob die Bindung aktiv ist.

public:
 property bool IsBinding { bool get(); };
public bool IsBinding { get; }
member this.IsBinding : bool
Public ReadOnly Property IsBinding As Boolean

Eigenschaftswert

true, wenn die Bindung aktiv ist, andernfalls false.

Beispiele

Im folgenden Codebeispiel werden die PropertyName Werte und IsBinding für jeden Binding in einem Formular ausgegeben.

private:
   void PrintBindingIsBinding()
   {
      for each ( Control^ c in this->Controls )
      {
         for each ( Binding^ b in c->DataBindings )
         {
            Console::WriteLine( "\n {0}", c );
            Console::WriteLine( "{0} IsBinding: {1}",
               b->PropertyName, b->IsBinding );
         }
      }
   }
private void PrintBindingIsBinding()
{
   foreach(Control c in this.Controls)
   {
      foreach(Binding b in c.DataBindings)
      {
         Console.WriteLine("\n" + c.ToString());
         Console.WriteLine(b.PropertyName + " IsBinding: " 
             + b.IsBinding);
      }
   }
}
Private Sub PrintBindingIsBinding
    Dim c As Control
    Dim b As Binding
    For Each c In Me.Controls
        For Each b in c.DataBindings
            Console.WriteLine (ControlChars.CrLf & c.ToString)
            Console.WriteLine (b.PropertyName & " IsBinding: " & _
                b.IsBinding)
        Next
    Next
End Sub

Hinweise

Eine Bindung ist aktiv, wenn sie die folgenden Bedingungen erfüllt:

Gilt für: