BindingMemberInfo BindingMemberInfo BindingMemberInfo BindingMemberInfo Struct

Definition

Enthält Informationen, die es Binding ermöglichen, eine Datenbindung in die Eigenschaft eines Objekts oder in die Eigenschaft des aktuellen Objekts in einer Objektliste aufzulösen.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
Vererbung
BindingMemberInfoBindingMemberInfoBindingMemberInfoBindingMemberInfo

Beispiele

Im folgenden Codebeispiel Beispiel druckt die BindingPath, BindingField, BindingMember für jedes Steuerelement in einem Formular.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

Hinweise

Die BindingMemberInfo wird zurückgegeben, durch die BindingMemberInfo Eigenschaft der Binding Klasse.The BindingMemberInfo is returned by the BindingMemberInfo property of the Binding class.

Die BindingMemberInfo wird erstellt, aus der Zeichenfolge, die an die BindingMemberInfo Konstruktor.The BindingMemberInfo is created from the string passed to the BindingMemberInfo constructor.

Konstruktoren

BindingMemberInfo(String) BindingMemberInfo(String) BindingMemberInfo(String) BindingMemberInfo(String)

Initialisiert eine neue Instanz der BindingMemberInfo-Klasse.Initializes a new instance of the BindingMemberInfo class.

Eigenschaften

BindingField BindingField BindingField BindingField

Ruft den Eigenschaftennamen des datengebundenen Objekts ab.Gets the property name of the data-bound object.

BindingMember BindingMember BindingMember BindingMember

Ruft die Informationen ab, mit denen der Eigenschaftenname des datengebundenen Objekts angegeben wird.Gets the information that is used to specify the property name of the data-bound object.

BindingPath BindingPath BindingPath BindingPath

Ruft den Eigenschaftennamen oder die Hierarchie durch Punkte getrennter Eigenschaftennamen ab, die dem Eigenschaftennamen des datengebundenen Objekts voransteht.Gets the property name, or the period-delimited hierarchy of property names, that comes before the property name of the data-bound object.

Methoden

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Bestimmt, ob das angegebene Objekt dieser BindingMemberInfo entspricht.Determines whether the specified object is equal to this BindingMemberInfo.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Gibt den Hashcode für diese BindingMemberInfo zurück.Returns the hash code for this BindingMemberInfo.

Operatoren

Equality(BindingMemberInfo, BindingMemberInfo) Equality(BindingMemberInfo, BindingMemberInfo) Equality(BindingMemberInfo, BindingMemberInfo) Equality(BindingMemberInfo, BindingMemberInfo)

Bestimmt, ob zwei BindingMemberInfo-Objekte gleich sind.Determines whether two BindingMemberInfo objects are equal.

Inequality(BindingMemberInfo, BindingMemberInfo) Inequality(BindingMemberInfo, BindingMemberInfo) Inequality(BindingMemberInfo, BindingMemberInfo) Inequality(BindingMemberInfo, BindingMemberInfo)

Bestimmt, ob zwei BindingMemberInfo-Objekte ungleich sind.Determines whether two BindingMemberInfo objects are not equal.

Gilt für:

Siehe auch