EnumBuilder.GetConstructors(BindingFlags) メソッド

定義

指定に従って、このクラスに定義されているパブリック コンストラクターおよび非パブリック コンストラクターを表す ConstructorInfo オブジェクトの配列を返します。

public:
 override cli::array <System::Reflection::ConstructorInfo ^> ^ GetConstructors(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.ConstructorInfo[] GetConstructors (System.Reflection.BindingFlags bindingAttr);
[System.Runtime.InteropServices.ComVisible(true)]
public override System.Reflection.ConstructorInfo[] GetConstructors (System.Reflection.BindingFlags bindingAttr);
override this.GetConstructors : System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
[<System.Runtime.InteropServices.ComVisible(true)>]
override this.GetConstructors : System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
Public Overrides Function GetConstructors (bindingAttr As BindingFlags) As ConstructorInfo()

パラメーター

bindingAttr
BindingFlags

これは InvokeMethodNonPublic など、BindingFlags からのビット フラグでなければなりません。

戻り値

ConstructorInfo[]

このクラスに定義されている指定したコンストラクターを表す ConstructorInfo オブジェクトの配列を返します。 コンストラクターが定義されていない場合は、空の配列が返されます。

属性

例外

不完全な型では、このメソッドは現在サポートされていません。

注釈

回避策として、完成した型のコンストラクターを取得するには、取得した型でリフレクションを使用またはAssembly.GetType使用してType.GetType型を取得できます。

適用対象