อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


Binding.IsBinding Property

Definition

Gets a value indicating whether the binding is active.

C#
public bool IsBinding { get; }

Property Value

true if the binding is active; otherwise, false.

Examples

The following code example prints the PropertyName and IsBinding value for each Binding on a form.

C#
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);
      }
   }
}

Remarks

A binding is active when it meets these conditions:

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10