TypeBuilder.GetNestedType(String, BindingFlags) 메서드

정의

이 형식에 의해 선언되는 public 중첩 형식 및 public이 아닌 중첩 형식을 반환합니다.

public:
 override Type ^ GetNestedType(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public override Type? GetNestedType (string name, System.Reflection.BindingFlags bindingAttr);
public override Type GetNestedType (string name, System.Reflection.BindingFlags bindingAttr);
override this.GetNestedType : string * System.Reflection.BindingFlags -> Type
Public Overrides Function GetNestedType (name As String, bindingAttr As BindingFlags) As Type

매개 변수

name
String

가져올 중첩 형식의 이름이 포함된 String입니다.

bindingAttr
BindingFlags

검색 방법을 지정하는 하나 이상의 BindingFlags로 구성된 비트 마스크입니다.

또는 public 메서드에 대해 대소문자 구분 검색을 수행하는 경우 0입니다.

반환

Type

지정된 요구 사항과 일치하는 중첩 형식을 나타내는 Type 개체이며(있는 경우), 이러한 개체가 없으면 null입니다.

예외

이 메서드는 불완전한 형식에 대해 구현되지 않습니다.

설명

또는 를 사용하여 형식을 Type.GetType Assembly.GetType 검색하고 검색된 형식에서 리플렉션을 사용합니다.

이 형식이 완료된 경우(예: 가 이 형식에 대해 호출되었지만 완료되지 않은 중첩 형식이 있는 경우) 는 가 CreateType GetNestedTypes 호출된 중첩 형식만 CreateType 반환합니다.

적용 대상