TypeBuilder.GetNestedType(String, BindingFlags) 메서드

정의

이 형식으로 선언된 public 및 비공용 중첩 형식을 반환합니다.

public:
 override Type ^ GetNestedType(System::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 비트 마스크로 구성됩니다.

-또는-

0입니다. 공용 메서드에 대한 대/소문자 구분 검색을 수행합니다.

반품

Type 지정된 요구 사항과 일치하는 중첩 형식을 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.

예외

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

설명

검색된 형식을 사용 Type.GetType 하거나 Assembly.GetType 리플렉션을 사용하여 형식을 검색합니다.

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

적용 대상