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.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The BindingMemberInfo type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | BindingField | Gets the property name of the data-bound object. |
![]() | BindingMember | Gets the information that is used to specify the property name of the data-bound object. |
![]() | BindingPath | Gets the property name, or the period-delimited hierarchy of property names, that comes before the property name of the data-bound object. |
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether the specified object is equal to this BindingMemberInfo. (Overrides ValueType::Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for this BindingMemberInfo. (Overrides ValueType::GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Determines whether two BindingMemberInfo objects are equal. |
![]() ![]() | Inequality | Determines whether two BindingMemberInfo objects are not equal. |
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() { for each ( Control^ c in this->Controls ) { for each ( Binding^ b in c->DataBindings ) { Console::WriteLine( "\n {0}", c ); BindingMemberInfo bInfo = b->BindingMemberInfo; Console::WriteLine( "Binding Path \t {0}", bInfo.BindingPath ); Console::WriteLine( "Binding Field \t {0}", bInfo.BindingField ); Console::WriteLine( "Binding Member \t {0}", bInfo.BindingMember ); } } }
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
