Binding.IsBinding Propiedad

Definición

Obtiene un valor que indica si el enlace está activo.Gets a value indicating whether the binding is active.

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

Valor de propiedad

Es true si el enlace está activo; de lo contrario, es false.true if the binding is active; otherwise, false.

Ejemplos

En el ejemplo de código siguiente se imprime el valor de PropertyName y IsBinding de cada Binding en un formulario.The following code example prints the PropertyName and IsBinding value for each Binding on a form.

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

Comentarios

Un enlace está activo cuando cumple estas condiciones:A binding is active when it meets these conditions:

Se aplica a