BindingMemberInfo BindingMemberInfo BindingMemberInfo BindingMemberInfo Struct

定義

Binding を使用して、オブジェクトのプロパティか、オブジェクト一覧にある現在のオブジェクトのプロパティへのデータ連結を解決できる情報を格納します。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
継承
BindingMemberInfoBindingMemberInfoBindingMemberInfoBindingMemberInfo

次のコード例ではBindingPath BindingField BindingMember 、フォーム上の各コントロールに対して、を出力します。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

注釈

は、クラスBindingのプロパティによって返されます。 BindingMemberInfo BindingMemberInfoThe BindingMemberInfo is returned by the BindingMemberInfo property of the Binding class.

は、 BindingMemberInfoコンストラクターに渡される文字列から作成されます。 BindingMemberInfoThe BindingMemberInfo is created from the string passed to the BindingMemberInfo constructor.

コンストラクター

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

BindingMemberInfo クラスの新しいインスタンスを初期化します。Initializes a new instance of the BindingMemberInfo class.

プロパティ

BindingField BindingField BindingField BindingField

データ バインド オブジェクトのプロパティ名を取得します。Gets the property name of the data-bound object.

BindingMember BindingMember BindingMember BindingMember

データ バインド オブジェクトのプロパティ名を指定するために使用する情報を取得します。Gets the information that is used to specify the property name of the data-bound object.

BindingPath BindingPath BindingPath BindingPath

データ バインド オブジェクトのプロパティ名の前に付いているプロパティ名 (またはピリオド区切りのプロパティ名の階層) を取得します。Gets the property name, or the period-delimited hierarchy of property names, that comes before the property name of the data-bound object.

メソッド

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

指定したオブジェクトが、この BindingMemberInfo と等しいかどうかを判断します。Determines whether the specified object is equal to this BindingMemberInfo.

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

この BindingMemberInfo のハッシュ コードを返します。Returns the hash code for this BindingMemberInfo.

演算子

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

2 つの BindingMemberInfo オブジェクトが等しいかどうかを判断します。Determines whether two BindingMemberInfo objects are equal.

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

2 つの BindingMemberInfo オブジェクトが等しくないかどうかを判断します。Determines whether two BindingMemberInfo objects are not equal.

適用対象

こちらもご覧ください