TypeBuilder.GetConstructors(BindingFlags) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 대로 이 클래스에 대해 정의된 public 및 non-public 생성자를 나타내는 개체의 배열 ConstructorInfo 을 반환합니다.
public:
override cli::array <System::Reflection::ConstructorInfo ^> ^ GetConstructors(System::Reflection::BindingFlags bindingAttr);
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)]
public override 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);
[<System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)>]
override this.GetConstructors : System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
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
이 플래그는 다음과 같이 BindingFlagsInvokeMethod비트 플래그 NonPublic 여야 합니다.
반품
이 클래스에 대해 정의된 지정된 생성자를 나타내는 개체의 ConstructorInfo 배열을 반환합니다. 생성자가 정의되지 않은 경우 빈 배열이 반환됩니다.
- 특성
예외
이 메서드는 불완전한 형식에 대해 구현되지 않습니다.
설명
검색된 형식을 사용 Type.GetType 하거나 Assembly.GetType 리플렉션을 사용하여 형식을 검색합니다.