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

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

DefaultBindingPropertyAttribute クラス

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

コンポーネントの既定のバインディング プロパティを指定します。このクラスは継承できません。

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

<AttributeUsageAttribute(AttributeTargets.Class)> _
Public NotInheritable Class
 DefaultBindingPropertyAttribute
    Inherits Attribute
Dim instance As DefaultBindingPropertyAttribute
[AttributeUsageAttribute(AttributeTargets.Class)] 
public sealed class DefaultBindingPropertyAttribute
 : Attribute
[AttributeUsageAttribute(AttributeTargets::Class)] 
public ref class DefaultBindingPropertyAttribute
 sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class) */ 
public final class DefaultBindingPropertyAttribute
 extends Attribute
AttributeUsageAttribute(AttributeTargets.Class) 
public final class DefaultBindingPropertyAttribute
 extends Attribute
解説解説

DefaultBindingPropertyAttribute はクラス レベルで指定されます。これは継承可能で、同じクラスで複数の属性を使用することはできません。

属性の使用方法については、「属性を使用したメタデータの拡張」を参照してください。

使用例使用例

DefaultBindingPropertyAttribute クラスを使用して、データ バインディングの既定のプロパティを指定するコード例を次に示します。コード全体については、「方法 : Windows フォーム コントロールに属性を適用する」を参照してください。

' 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
// 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
{
継承階層継承階層
System.Object
   System.Attribute
    System.ComponentModel.DefaultBindingPropertyAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DefaultBindingPropertyAttribute メンバ
System.ComponentModel 名前空間
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス
LookupBindingPropertiesAttribute

DefaultBindingPropertyAttribute コンストラクタ ()


DefaultBindingPropertyAttribute コンストラクタ (String)

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

指定したプロパティ名を使用して、DefaultBindingPropertyAttribute クラスの新しいインスタンスを初期化します。

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

Dim name As String

Dim instance As New DefaultBindingPropertyAttribute(name)
public DefaultBindingPropertyAttribute (
    string name
)
public:
DefaultBindingPropertyAttribute (
    String^ name
)
public DefaultBindingPropertyAttribute (
    String name
)
public function DefaultBindingPropertyAttribute
 (
    name : String
)

パラメータ

name

既定のバインディング プロパティの名前。

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

DefaultBindingPropertyAttribute コンストラクタ

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

名前 説明
DefaultBindingPropertyAttribute () パラメータを使用せずに DefaultBindingPropertyAttribute クラスの新しいインスタンスを初期化します。
DefaultBindingPropertyAttribute (String) 指定したプロパティ名を使用して、DefaultBindingPropertyAttribute クラスの新しいインスタンスを初期化します。
参照参照

関連項目

DefaultBindingPropertyAttribute クラス
DefaultBindingPropertyAttribute メンバ
System.ComponentModel 名前空間
Name

DefaultBindingPropertyAttribute フィールド


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

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

関連項目

DefaultBindingPropertyAttribute クラス
System.ComponentModel 名前空間
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス
LookupBindingPropertiesAttribute

DefaultBindingPropertyAttribute プロパティ


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

  名前 説明
パブリック プロパティ Name DefaultBindingPropertyAttribute のバインド先となるコンポーネントで使用する既定のバインディング プロパティの名前を取得します。
パブリック プロパティ TypeId  派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。)
参照参照

関連項目

DefaultBindingPropertyAttribute クラス
System.ComponentModel 名前空間
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス
LookupBindingPropertiesAttribute

DefaultBindingPropertyAttribute メソッド


パブリック メソッドパブリック メソッド

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

関連項目

DefaultBindingPropertyAttribute クラス
System.ComponentModel 名前空間
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス
LookupBindingPropertiesAttribute

DefaultBindingPropertyAttribute メンバ

コンポーネントの既定のバインディング プロパティを指定します。このクラスは継承できません。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DefaultBindingPropertyAttribute オーバーロードされます。 DefaultBindingPropertyAttribute クラスの新しいインスタンスを初期化します。
パブリック フィールドパブリック フィールド
  名前 説明
パブリック フィールド Default DefaultBindingPropertyAttribute クラスの既定値を表します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Name DefaultBindingPropertyAttribute のバインド先となるコンポーネントで使用する既定のバインディング プロパティの名前を取得します。
パブリック プロパティ TypeId  派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Equals オーバーロードされます。 オーバーライドされます。 指定した Object が現在の DefaultBindingPropertyAttribute インスタンスと等しいかどうかを判断します。
パブリック メソッド GetCustomAttribute  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。)
パブリック メソッド GetHashCode オーバーライドされます。  
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DefaultBindingPropertyAttribute クラス
System.ComponentModel 名前空間
BindableAttribute クラス
ComplexBindingPropertiesAttribute クラス
DefaultBindingPropertyAttribute クラス
LookupBindingPropertiesAttribute



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「DefaultBindingPropertyAttribute」の関連用語

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

   

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



DefaultBindingPropertyAttributeのページの著作権

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

©2026 GRAS Group, Inc.RSS