LookupBindingPropertiesAttribute クラス
アセンブリ: System (system.dll 内)

<AttributeUsageAttribute(AttributeTargets.Class)> _ Public NotInheritable Class LookupBindingPropertiesAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class)] public sealed class LookupBindingPropertiesAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class)] public ref class LookupBindingPropertiesAttribute sealed : public Attribute

LookupBindingPropertiesAttribute は、検索ベースのバインディング (特に ListBox コントロールと ComboBox コントロール) で使用するプロパティを指定するために使用します。
LookupBindingPropertiesAttribute はクラス レベルで指定されます。このクラスは継承でき、同じクラスで複数の属性を使用することはできません。

検索ベースのバインディングで使用するプロパティを次のコード例に示します。
[LookupBindingProperties("DataSource", "DisplayMember", "ValueMember", "LookupMember")] public class DemoControl : Control { … }
LookupBindingPropertiesAttribute 属性には、値の設定解除時を除き、4 つのメンバすべてを含める必要があります。ComboBox コントロールを次のコード例に示します。
[LookupBindingProperties("DataSource", "DisplayMember", "ValueMember", "SelectedValue")] public class ComboBox : Control{ … }
コントロールで単純バインディングとリスト バインディングの両方をサポートできることを次のコード例に示します。
[LookupBindingProperties("DataSource", "DisplayMember", "ValueMember", "SelectedValue")] [DefaultBindingProperty("Text")] public class ComboBox : Control{ … }
引数を指定しないことによって LookupBindingPropertiesAttribute 属性を設定解除できることを次のコード例に示します。

System.Attribute
System.ComponentModel.LookupBindingPropertiesAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


LookupBindingPropertiesAttribute コンストラクタ ()
アセンブリ: System (system.dll 内)


既定のコンストラクタは、DataSource、DisplayMember、ValueMember、および LookupMember の各プロパティを null 参照 (Visual Basic では Nothing) に設定します。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


LookupBindingPropertiesAttribute クラス
LookupBindingPropertiesAttribute メンバ
System.ComponentModel 名前空間
DataSource
DisplayMember
ValueMember
LookupMember
LookupBindingPropertiesAttribute コンストラクタ (String, String, String, String)
アセンブリ: System (system.dll 内)

Public Sub New ( _ dataSource As String, _ displayMember As String, _ valueMember As String, _ lookupMember As String _ )
Dim dataSource As String Dim displayMember As String Dim valueMember As String Dim lookupMember As String Dim instance As New LookupBindingPropertiesAttribute(dataSource, displayMember, valueMember, lookupMember)
public LookupBindingPropertiesAttribute ( string dataSource, string displayMember, string valueMember, string lookupMember )
public: LookupBindingPropertiesAttribute ( String^ dataSource, String^ displayMember, String^ valueMember, String^ lookupMember )
public LookupBindingPropertiesAttribute ( String dataSource, String displayMember, String valueMember, String lookupMember )
public function LookupBindingPropertiesAttribute ( dataSource : String, displayMember : String, valueMember : String, lookupMember : String )


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


LookupBindingPropertiesAttribute クラス
LookupBindingPropertiesAttribute メンバ
System.ComponentModel 名前空間
DataSource
DisplayMember
ValueMember
LookupMember
LookupBindingPropertiesAttribute コンストラクタ

名前 | 説明 |
---|---|
LookupBindingPropertiesAttribute () | パラメータを使用せずに LookupBindingPropertiesAttribute クラスの新しいインスタンスを初期化します。 |
LookupBindingPropertiesAttribute (String, String, String, String) | LookupBindingPropertiesAttribute クラスの新しいインスタンスを初期化します。 |

関連項目
LookupBindingPropertiesAttribute クラスLookupBindingPropertiesAttribute メンバ
System.ComponentModel 名前空間
DataSource
DisplayMember
ValueMember
LookupMember
LookupBindingPropertiesAttribute フィールド
LookupBindingPropertiesAttribute プロパティ

名前 | 説明 | |
---|---|---|
![]() | DataSource | LookupBindingPropertiesAttribute のバインド先となるコンポーネントのデータ ソース プロパティの名前を取得します。 |
![]() | DisplayMember | LookupBindingPropertiesAttribute のバインド先となるコンポーネントの表示メンバ プロパティの名前を取得します。 |
![]() | LookupMember | この属性のバインド先となるコンポーネントの検索メンバの名前を取得します。 |
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。) |
![]() | ValueMember | LookupBindingPropertiesAttribute のバインド先となるコンポーネントの値メンバ プロパティの名前を取得します。 |

LookupBindingPropertiesAttribute メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 オーバーライドされます。 指定した Object が現在の LookupBindingPropertiesAttribute インスタンスと等しいかどうかを判断します。 |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。) |
![]() | GetHashCode | オーバーライドされます。 このインスタンスのハッシュ コードを返します。 |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

LookupBindingPropertiesAttribute メンバ
検索ベースのバインディングをサポートするプロパティを指定します。このクラスは継承できません。
LookupBindingPropertiesAttribute データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | LookupBindingPropertiesAttribute | オーバーロードされます。 LookupBindingPropertiesAttribute クラスの新しいインスタンスを初期化します。 |


名前 | 説明 | |
---|---|---|
![]() | DataSource | LookupBindingPropertiesAttribute のバインド先となるコンポーネントのデータ ソース プロパティの名前を取得します。 |
![]() | DisplayMember | LookupBindingPropertiesAttribute のバインド先となるコンポーネントの表示メンバ プロパティの名前を取得します。 |
![]() | LookupMember | この属性のバインド先となるコンポーネントの検索メンバの名前を取得します。 |
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。) |
![]() | ValueMember | LookupBindingPropertiesAttribute のバインド先となるコンポーネントの値メンバ プロパティの名前を取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 オーバーライドされます。 指定した Object が現在の LookupBindingPropertiesAttribute インスタンスと等しいかどうかを判断します。 |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。) |
![]() | GetHashCode | オーバーライドされます。 このインスタンスのハッシュ コードを返します。 |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

- LookupBindingPropertiesAttributeのページへのリンク