ComplexBindingPropertiesAttribute クラス
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
複合データ バインディングをサポートするコンポーネントのデータ ソース プロパティおよびデータ メンバー プロパティを指定します。 このクラスは継承できません。
public ref class ComplexBindingPropertiesAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class ComplexBindingPropertiesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type ComplexBindingPropertiesAttribute = class
inherit Attribute
Public NotInheritable Class ComplexBindingPropertiesAttribute
Inherits Attribute
- 継承
- 属性
次のコード例では、 を使用して ComplexBindingPropertiesAttribute 、データ バインディングの DataSource
コントロールと DataMember
プロパティを識別します。 完全なコード一覧については、「方法: Windows フォーム コントロールで属性を適用する」を参照してください。
// This control demonstrates a simple logging capability.
[ComplexBindingProperties("DataSource", "DataMember")]
[DefaultBindingProperty("TitleText")]
[DefaultEvent("ThresholdExceeded")]
[DefaultProperty("Threshold")]
[HelpKeywordAttribute(typeof(UserControl))]
[ToolboxItem("System.Windows.Forms.Design.AutoSizeToolboxItem,System.Design")]
public class AttributesDemoControl : UserControl
{
' This control demonstrates a simple logging capability.
<ComplexBindingProperties("DataSource", "DataMember"), _
DefaultBindingProperty("TitleText"), _
DefaultEvent("ThresholdExceeded"), _
DefaultProperty("Threshold"), _
HelpKeywordAttribute(GetType(UserControl)), _
ToolboxItem("System.Windows.Forms.Design.AutoSizeToolboxItem,System.Design")> _
Public Class AttributesDemoControl
Inherits UserControl
ComplexBindingPropertiesAttributeは、 に基づくバインドなど、複雑なデータ バインディングで使用されるプロパティをSystem.Collections.IList指定するために使用されます。
属性は ComplexBindingPropertiesAttribute クラス レベルで指定されます。 継承可能であり、同じクラスで複数の属性を許可しません。
コントロールは、 を使用した DefaultBindingPropertyAttribute単純なバインディングと複雑なバインドの両方をサポートできます。
属性の使用の詳細については、「 属性」を参照してください。
Complex |
パラメーターを使用せずに ComplexBindingPropertiesAttribute クラスの新しいインスタンスを初期化します。 |
Complex |
指定したデータ ソースを使用して、ComplexBindingPropertiesAttribute クラスの新しいインスタンスを初期化します。 |
Complex |
指定したデータ ソースとデータ メンバーを使用して、ComplexBindingPropertiesAttribute クラスの新しいインスタンスを初期化します。 |
Default |
ComplexBindingPropertiesAttribute クラスの既定値を表します。 |
Data |
ComplexBindingPropertiesAttribute のバインド先となるコンポーネントのデータ メンバー プロパティの名前を取得します。 |
Data |
ComplexBindingPropertiesAttribute のバインド先となるコンポーネントのデータ ソース プロパティの名前を取得します。 |
Type |
派生クラスで実装されると、この Attribute の一意の識別子を取得します。 (継承元 Attribute) |
Equals(Object) |
指定した Object が、現在の ComplexBindingPropertiesAttribute インスタンスと等しいかどうかを判断します。 |
Get |
このインスタンスのハッシュ コードを返します。 |
Get |
現在のインスタンスの Type を取得します。 (継承元 Object) |
Is |
派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。 (継承元 Attribute) |
Match(Object) |
派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (継承元 Attribute) |
Memberwise |
現在の Object の簡易コピーを作成します。 (継承元 Object) |
To |
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |
_Attribute. |
一連の名前を対応する一連のディスパッチ識別子に割り当てます。 (継承元 Attribute) |
_Attribute. |
オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。 (継承元 Attribute) |
_Attribute. |
オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。 (継承元 Attribute) |
_Attribute. |
オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。 (継承元 Attribute) |
製品 | バージョン |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。