現在のクラスに定義されているコンストラクタを表す ConstructorInfo オブジェクトの配列を返します。
Overrides Overloads Public Function GetConstructors( _
ByVal bindingAttr As BindingFlags _) As ConstructorInfo()
[C#]
public override ConstructorInfo[] GetConstructors(BindingFlagsbindingAttr);
[C++]
public: ConstructorInfo* GetConstructors(BindingFlagsbindingAttr) [];
[JScript]
public override function GetConstructors(
bindingAttr : BindingFlags) : ConstructorInfo[];
パラメータ
- bindingAttr
検索の実行方法に影響を与えるビットマスク。この値は、 BindingFlags の 0 個以上のビット フラグの組み合わせです。
戻り値
このクラスに定義されている指定したコンストラクタを格納している ConstructorInfo 型の配列。コンストラクタが定義されていない場合は、空の配列が返されます。指定したパラメータの値によって、パブリック コンストラクタだけが返されるか、パブリック コンストラクタと非パブリック コンストラクタの両方が返されるかが決まります。
解説
クラス初期化子は、 GetMember 、 GetMembers 、 FindMembers 、および GetConstructors を通じてだけ使用できます。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
TypeDelegator クラス | TypeDelegator メンバ | System.Reflection 名前空間 | TypeDelegator.GetConstructors オーバーロードの一覧