TypeBuilder.GetMethods(BindingFlags) 메서드

정의

지정된 대로 이 형식에 의해 선언되거나 상속된 모든 public 및 non-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

이 플래그는 다음과 같이 InvokeMethodNonPublic비트 플래그 BindingFlags 여야 합니다.

반품

사용되는 경우 nonPublic 이 형식에 정의된 public 메서드와 public이 아닌 메서드를 나타내는 개체의 MethodInfo 배열을 반환하고, 그렇지 않으면 public 메서드만 반환됩니다.

예외

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

설명

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

적용 대상