BindingMemberInfo Estructura

Definición

Contiene información que permite que Binding resuelva un enlace a datos en la propiedad de un objeto o en la propiedad del objeto actual en una lista de objetos.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.

public value class BindingMemberInfo
public struct BindingMemberInfo
type BindingMemberInfo = struct
Public Structure BindingMemberInfo
Herencia
BindingMemberInfo

Ejemplos

En el ejemplo de código siguiente BindingPathse BindingFieldimprime BindingMember el,, para cada control de un formulario.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 );
         }
      }
   }
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);
      }
   }
}
Private Sub PrintBindingMemberInfo()
  Dim c As Control
  Dim b As Binding
  For Each c In  Me.Controls         
     For Each b In  c.DataBindings
        Console.WriteLine(ControlChars.Cr + c.ToString())
        Dim bInfo As BindingMemberInfo = b.BindingMemberInfo
        Console.WriteLine("Binding Path " + ControlChars.Tab _
                          + bInfo.BindingPath)
        Console.WriteLine("Binding Field " + ControlChars.Tab _
                          + bInfo.BindingField)
        Console.WriteLine("Binding Member " + ControlChars.Tab _
                          + bInfo.BindingMember)
      Next b
   Next c
End Sub

Comentarios

La BindingMemberInfo BindingMemberInfo propiedad de laBinding clase devuelve el.The BindingMemberInfo is returned by the BindingMemberInfo property of the Binding class.

Se crea a partir de la cadena que se pasa al constructor.BindingMemberInfo BindingMemberInfoThe BindingMemberInfo is created from the string passed to the BindingMemberInfo constructor.

Constructores

BindingMemberInfo(String)

Inicializa una nueva instancia de la clase BindingMemberInfo.Initializes a new instance of the BindingMemberInfo class.

Propiedades

BindingField

Obtiene el nombre de propiedad del objeto enlazado a datos.Gets the property name of the data-bound object.

BindingMember

Obtiene la información que se utiliza para especificar el nombre de propiedad del objeto enlazado a datos.Gets the information that is used to specify the property name of the data-bound object.

BindingPath

Obtiene el nombre de propiedad, o la jerarquía de nombres de propiedad delimitados por puntos, que precede al nombre de propiedad del objeto enlazado a datos.Gets the property name, or the period-delimited hierarchy of property names, that comes before the property name of the data-bound object.

Métodos

Equals(Object)

Determina si el objeto especificado es igual a este BindingMemberInfo.Determines whether the specified object is equal to this BindingMemberInfo.

GetHashCode()

Devuelve el código hash para esta estructura BindingMemberInfo.Returns the hash code for this BindingMemberInfo.

Operadores

Equality(BindingMemberInfo, BindingMemberInfo)

Determina si los dos objetos BindingMemberInfo son iguales.Determines whether two BindingMemberInfo objects are equal.

Inequality(BindingMemberInfo, BindingMemberInfo)

Determina si dos objetos BindingMemberInfo no son iguales.Determines whether two BindingMemberInfo objects are not equal.

Se aplica a

Consulte también: