BindableAttribute コンストラクタとは? わかりやすく解説

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

BindableAttribute コンストラクタ (BindableSupport)

BindableSupport 値の 1 つ指定して、BindableAttribute クラス新しインスタンス初期化します。

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

Public Sub New ( _
    flags As BindableSupport _
)
Dim flags As BindableSupport

Dim instance As New BindableAttribute(flags)
public BindableAttribute (
    BindableSupport flags
)
public:
BindableAttribute (
    BindableSupport flags
)
public BindableAttribute (
    BindableSupport flags
)
public function BindableAttribute (
    flags : BindableSupport
)

パラメータ

flags

BindableSupport 値の 1 つ

解説解説

BindableAttributetrue設定してプロパティマークすると、この属性の値は定数メンバ Yes に設定されます。false設定されBindableAttributeマークしたプロパティ場合、値は No になります。したがってコード内でこの属性の値を確認する場合は、この属性BindableAttribute.Yes または BindableAttribute.No として指定する必要があります

使用例使用例

プロパティデータバインド先として適切であることをマークするコード例次に示します。このコード例では、新しBindableAttribute作成し、その値を BindableAttribute.Yes設定してから、その属性プロパティ関連付けます。

<Bindable(BindableSupport.Yes)> _
Public Property MyProperty As
 Integer
   Get
      ' Insert code here.
      Return 0
   End Get
   Set
      ' Insert code here.
   End Set
End Property
  
[Bindable(BindableSupport.Yes)]
 public int MyProperty {
    get {
       // Insert code here.
       return 0;
    }
    set {
       // Insert code here.
    }
 }
   
   [Bindable(BindableSupport::Yes)]
   int get()
   {
      
      // Insert code here.
      return 0;
   }

   void set( int theValue
 )
   {
      
      // Insert code here.
   }

}
/** @attribute Bindable(BindableSupport.Yes)
 */
/** @property 
 */
public int get_MyProperty()
{
    // Insert code here.
    return 0;
} //get_MyProperty

/** @property 
 */
public void set_MyProperty(int
 value)
{
    // Insert code here.
} //set_MyProperty
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
BindableAttribute クラス
BindableAttribute メンバ
System.ComponentModel 名前空間
BindableAttribute クラス
BindableSupport

BindableAttribute コンストラクタ (Boolean, BindingDirection)

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

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

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

Public Sub New ( _
    bindable As Boolean, _
    direction As BindingDirection _
)
Dim bindable As Boolean
Dim direction As BindingDirection

Dim instance As New BindableAttribute(bindable,
 direction)
public BindableAttribute (
    bool bindable,
    BindingDirection direction
)
public:
BindableAttribute (
    bool bindable, 
    BindingDirection direction
)
public BindableAttribute (
    boolean bindable, 
    BindingDirection direction
)
public function BindableAttribute (
    bindable : boolean, 
    direction : BindingDirection
)

パラメータ

bindable

プロパティバインディング使用する場合trueそれ以外場合false

direction

BindingDirection 値の 1 つ

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

BindableAttribute コンストラクタ (Boolean)

Boolean 値を指定して、BindableAttribute クラス新しインスタンス初期化します。

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

Public Sub New ( _
    bindable As Boolean _
)
Dim bindable As Boolean

Dim instance As New BindableAttribute(bindable)
public BindableAttribute (
    bool bindable
)
public:
BindableAttribute (
    bool bindable
)
public BindableAttribute (
    boolean bindable
)
public function BindableAttribute (
    bindable : boolean
)

パラメータ

bindable

プロパティバインディング使用する場合trueそれ以外場合false

解説解説

BindableAttributetrue設定してプロパティマークすると、この属性の値は定数メンバ Yes に設定されます。false設定されBindableAttributeマークしたプロパティ場合、値は No になります。したがってコード内でこの属性の値を確認する場合は、この属性BindableAttribute.Yes または BindableAttribute.No として指定する必要があります

使用例使用例

プロパティデータバインド先として適切であることをマークするコード例次に示します。このコード例では、新しBindableAttribute作成し、その値を BindableAttribute.Yes設定してから、その属性プロパティ関連付けます。

<Bindable(true)> _
Public Property MyProperty As
 Integer
   Get
      ' Insert code here.
      Return 0
   End Get
   Set
      ' Insert code here.
   End Set
End Property
  
[Bindable(true)]
 public int MyProperty {
    get {
       // Insert code here.
       return 0;
    }
    set {
       // Insert code here.
    }
 }
   
public:
   [property:Bindable(true)]
   property int MyProperty 
   {
      int get()
      {
         // Insert code here.
         return 0;
      }
      void set( int theValue
 )
      {
         // Insert code here.
      }
   }
/** @attribute Bindable(true)
 */
/** @property 
 */
public int get_MyProperty()
{
    // Insert code here.
    return 0;
} //get_MyProperty

/** @property 
 */
public void set_MyProperty(int
 value)
{
    // Insert code here.
} //set_MyProperty
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
BindableAttribute クラス
BindableAttribute メンバ
System.ComponentModel 名前空間
BindableAttribute クラス

BindableAttribute コンストラクタ (BindableSupport, BindingDirection)

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

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

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

Public Sub New ( _
    flags As BindableSupport, _
    direction As BindingDirection _
)
Dim flags As BindableSupport
Dim direction As BindingDirection

Dim instance As New BindableAttribute(flags,
 direction)
public BindableAttribute (
    BindableSupport flags,
    BindingDirection direction
)
public:
BindableAttribute (
    BindableSupport flags, 
    BindingDirection direction
)
public BindableAttribute (
    BindableSupport flags, 
    BindingDirection direction
)
public function BindableAttribute (
    flags : BindableSupport, 
    direction : BindingDirection
)

パラメータ

flags

BindableSupport 値の 1 つ

direction

BindingDirection 値の 1 つ

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

BindableAttribute コンストラクタ

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

名前 説明
BindableAttribute (BindableSupport) BindableSupport 値の 1 つ指定してBindableAttribute クラス新しインスタンス初期化します。
BindableAttribute (Boolean) Boolean 値を指定してBindableAttribute クラス新しインスタンス初期化します。
BindableAttribute (BindableSupport, BindingDirection) BindableAttribute クラス新しインスタンス初期化します。
BindableAttribute (Boolean, BindingDirection) BindableAttribute クラス新しインスタンス初期化します。
参照参照

関連項目

BindableAttribute クラス
BindableAttribute メンバ
System.ComponentModel 名前空間
BindableAttribute クラス
BindableSupport


このページでは「.NET Framework クラス ライブラリ リファレンス」からBindableAttribute コンストラクタを検索した結果を表示しています。
Weblioに収録されているすべての辞書からBindableAttribute コンストラクタを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からBindableAttribute コンストラクタ を検索

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

辞書ショートカット

すべての辞書の索引

「BindableAttribute コンストラクタ」の関連用語

BindableAttribute コンストラクタのお隣キーワード
検索ランキング

   

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



BindableAttribute コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS