EnumBuilder.GetConstructors(BindingFlags) 메서드

정의

지정된 대로 이 클래스에 대해 정의된 public 또는 non-public 생성자를 나타내는 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

이것은 InvokeMethod, NonPublic 등과 같은 BindingFlags의 비트 플래그여야 합니다.

반환

ConstructorInfo[]

이 클래스에 대해 정의된 지정된 생성자를 나타내는 ConstructorInfo 개체 배열을 반환합니다. 생성자가 정의되지 않은 경우 빈 배열이 반환됩니다.

특성

예외

이 메서드는 완전하지 않은 형식에서 현재 지원되지 않습니다.

설명

해결 방법으로 완성된 형식의 생성자를 검색하려면 검색된 형식을 사용 Type.GetType 하거나 Assembly.GetType 리플렉션을 사용하여 형식을 검색할 수 있습니다.

적용 대상