TypeBuilder.GetMethods(BindingFlags) 메서드

정의

지정된 대로 이 형식에 의해 선언되거나 상속되는 public 및 public이 아닌 모든 메서드를 반환합니다.

public:
 override cli::array <System::Reflection::MethodInfo ^> ^ GetMethods(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.MethodInfo[] GetMethods (System.Reflection.BindingFlags bindingAttr);
override this.GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]
Public Overrides Function GetMethods (bindingAttr As BindingFlags) As MethodInfo()

매개 변수

bindingAttr
BindingFlags

이는 InvokeMethod, NonPublic 등에서처럼 BindingFlags의 비트 플래그여야 합니다.

반환

nonPublic이 사용될 경우 이 형식에 대해 정의된 public 및 public이 아닌 메서드를 나타내는 MethodInfo 개체의 배열을 반환하고, 그렇지 않은 경우 public 메서드만 반환합니다.

예외

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

설명

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

적용 대상