LookupBindingPropertiesAttributeとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > LookupBindingPropertiesAttributeの意味・解説 

LookupBindingPropertiesAttribute クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

検索ベースバインディングサポートするプロパティ指定します。このクラス継承できません。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

<AttributeUsageAttribute(AttributeTargets.Class)> _
Public NotInheritable Class
 LookupBindingPropertiesAttribute
    Inherits Attribute
Dim instance As LookupBindingPropertiesAttribute
[AttributeUsageAttribute(AttributeTargets.Class)] 
public sealed class LookupBindingPropertiesAttribute
 : Attribute
[AttributeUsageAttribute(AttributeTargets::Class)] 
public ref class LookupBindingPropertiesAttribute
 sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class) */ 
public final class LookupBindingPropertiesAttribute
 extends Attribute
AttributeUsageAttribute(AttributeTargets.Class) 
public final class LookupBindingPropertiesAttribute
 extends 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 属性設定解除できることを次のコード例示します

[LookupBindingProperties()]
public class NonBindableCombo : Control{ …
 }
継承階層継承階層
System.Object
   System.Attribute
    System.ComponentModel.LookupBindingPropertiesAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LookupBindingPropertiesAttribute メンバ
System.ComponentModel 名前空間
IBindingList インターフェイス
ListBox
ComboBox
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス

LookupBindingPropertiesAttribute コンストラクタ ()

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

パラメータ使用せずに LookupBindingPropertiesAttribute クラス新しインスタンス初期化します。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Dim instance As New LookupBindingPropertiesAttribute
public LookupBindingPropertiesAttribute ()
public:
LookupBindingPropertiesAttribute ()
public LookupBindingPropertiesAttribute ()
public function LookupBindingPropertiesAttribute
 ()
解説解説

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LookupBindingPropertiesAttribute クラス
LookupBindingPropertiesAttribute メンバ
System.ComponentModel 名前空間
DataSource
DisplayMember
ValueMember
LookupMember

LookupBindingPropertiesAttribute コンストラクタ (String, String, String, String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

LookupBindingPropertiesAttribute クラス新しインスタンス初期化します。

名前空間: System.ComponentModel
アセンブリ: 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
)

パラメータ

dataSource

データ ソースとして使用するプロパティの名前。

displayMember

表示名使用するプロパティの名前。

valueMember

値のソースとして使用するプロパティの名前。

lookupMember

検索使用するプロパティの名前。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LookupBindingPropertiesAttribute クラス
LookupBindingPropertiesAttribute メンバ
System.ComponentModel 名前空間
DataSource
DisplayMember
ValueMember
LookupMember

LookupBindingPropertiesAttribute コンストラクタ

LookupBindingPropertiesAttribute クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
LookupBindingPropertiesAttribute () パラメータ使用せずLookupBindingPropertiesAttribute クラス新しインスタンス初期化します。
LookupBindingPropertiesAttribute (String, String, String, String) LookupBindingPropertiesAttribute クラス新しインスタンス初期化します。
参照参照

関連項目

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

LookupBindingPropertiesAttribute フィールド


パブリック フィールドパブリック フィールド

  名前 説明
パブリック フィールド Default LookupBindingPropertiesAttribute クラス既定値表します
参照参照

関連項目

LookupBindingPropertiesAttribute クラス
System.ComponentModel 名前空間
IBindingList インターフェイス
ListBox
ComboBox
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス

LookupBindingPropertiesAttribute プロパティ


パブリック プロパティパブリック プロパティ

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

関連項目

LookupBindingPropertiesAttribute クラス
System.ComponentModel 名前空間
IBindingList インターフェイス
ListBox
ComboBox
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス

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 から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

LookupBindingPropertiesAttribute クラス
System.ComponentModel 名前空間
IBindingList インターフェイス
ListBox
ComboBox
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス

LookupBindingPropertiesAttribute メンバ

検索ベースバインディングサポートするプロパティ指定します。このクラス継承できません。

LookupBindingPropertiesAttribute データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド LookupBindingPropertiesAttribute オーバーロードされます。 LookupBindingPropertiesAttribute クラス新しインスタンス初期化します。
パブリック フィールドパブリック フィールド
  名前 説明
パブリック フィールド Default 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 から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

LookupBindingPropertiesAttribute クラス
System.ComponentModel 名前空間
IBindingList インターフェイス
ListBox
ComboBox
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「LookupBindingPropertiesAttribute」の関連用語

LookupBindingPropertiesAttributeのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



LookupBindingPropertiesAttributeのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS