CodeTypeParameter.HasConstructorConstraint プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CodeTypeParameter.HasConstructorConstraint プロパティの意味・解説 

CodeTypeParameter.HasConstructorConstraint プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

型パラメータにコンストラクタの制約があるかどうかを表す値を取得または設定します。

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

Public Property HasConstructorConstraint As
 Boolean
Dim instance As CodeTypeParameter
Dim value As Boolean

value = instance.HasConstructorConstraint

instance.HasConstructorConstraint = value
public bool HasConstructorConstraint { get;
 set; }
public:
property bool HasConstructorConstraint {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_HasConstructorConstraint ()

/** @property */
public void set_HasConstructorConstraint (boolean
 value)
public function get HasConstructorConstraint
 () : boolean

public function set HasConstructorConstraint
 (value : boolean)

プロパティ値
型パラメータにコンストラクタの制約が設定されている場合は true。それ以外の場合は false。既定値は false です。

解説解説
使用例使用例

HasConstructorConstraint プロパティを使用して型パラメータにコンストラクタの制約が設定されているかどうかを判断する方法を、次のコード例に示します。このコード例は、CodeTypeParameter クラスのトピックで取り上げているコード例の一部分です。

kType.HasConstructorConstraint = True
kType.HasConstructorConstraint = true;
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeTypeParameter クラス
CodeTypeParameter メンバ
System.CodeDom 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

CodeTypeParameter.HasConstructorConstraint プロパティのお隣キーワード
検索ランキング

   

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



CodeTypeParameter.HasConstructorConstraint プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS