Export (0) Print
Expand All

BindingMemberInfo Structure

Contains information that enables a Binding to resolve a data binding to either the property of an object or the property of the current object in a list of objects.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public struct BindingMemberInfo

The BindingMemberInfo type exposes the following members.

  NameDescription
Public methodBindingMemberInfoInitializes a new instance of the BindingMemberInfo class.
Top

  NameDescription
Public propertyBindingFieldGets the property name of the data-bound object.
Public propertyBindingMemberGets the information that is used to specify the property name of the data-bound object.
Public propertyBindingPathGets the property name, or the period-delimited hierarchy of property names, that comes before the property name of the data-bound object.
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to this BindingMemberInfo. (Overrides ValueType.Equals(Object).)
Public methodGetHashCodeReturns the hash code for this BindingMemberInfo. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

  NameDescription
Public operatorStatic memberEqualityDetermines whether two BindingMemberInfo objects are equal.
Public operatorStatic memberInequalityDetermines whether two BindingMemberInfo objects are not equal.
Top

The BindingMemberInfo is returned by the BindingMemberInfo property of the Binding class.

The BindingMemberInfo is created from the string passed to the BindingMemberInfo constructor.

The following code example prints the BindingPath, BindingField, BindingMember for each control on a form.

private void PrintBindingMemberInfo()
{
   foreach(Control c in this.Controls)
   {
      foreach(Binding b in c.DataBindings)
      {
         Console.WriteLine("\n" + c.ToString());
         BindingMemberInfo bInfo = b.BindingMemberInfo;
         Console.WriteLine("Binding Path \t" + bInfo.BindingPath);
         Console.WriteLine("Binding Field \t" + bInfo.BindingField);
         Console.WriteLine("Binding Member \t" + bInfo.BindingMember);
      }
   }
}

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft