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

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

MergablePropertyAttribute コンストラクタ

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

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

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

Dim instance As New MergablePropertyAttribute(allowMerge)
public MergablePropertyAttribute (
    bool allowMerge
)
public:
MergablePropertyAttribute (
    bool allowMerge
)
public MergablePropertyAttribute (
    boolean allowMerge
)
public function MergablePropertyAttribute (
    allowMerge : boolean
)

パラメータ

allowMerge

[プロパティ] ウィンドウ内で、プロパティ別のオブジェクト属すプロパティ組み合わせることができる場合trueそれ以外場合false

使用例使用例

プロパティ組み合わせできるとしてマークする例を次に示します。このコードは、新しMergablePropertyAttribute作成し、その値を MergablePropertyAttribute.Yes に設定してから、その属性プロパティ関連付けます。

<MergableProperty(True)> _    
Public Property MyProperty() As
 Integer
    Get
        ' Insert code here.
        Return 0
    End Get
    Set
        ' Insert code here.
    End Set 
End Property

[MergableProperty(true)]
public int MyProperty {
   get {
      // Insert code here.
     return 0;
   }
   set {
      // Insert code here.
   }
}
   
public:
   [MergableProperty(true)]
   property int MyProperty 
   {
      int get()
      {
         // Insert code here.
         return 0;
      }
      void set( int value
 )
      {
         // Insert code here.
      }
   }
/** @attribute MergableProperty(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
public MergableProperty(true)
function get MyProperty() : int{
   // Insert code here.
   return 0
}

function set MyProperty(value : int){
   // Insert code here.
}

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



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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS