ModuleBuilder.GetMethodImpl 메서드

정의

지정된 조건과 일치하는 모듈 수준 메서드를 반환합니다.

protected:
 override System::Reflection::MethodInfo ^ GetMethodImpl(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
protected override System.Reflection.MethodInfo? GetMethodImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Reflection.CallingConventions callConvention, Type[]? types, System.Reflection.ParameterModifier[]? modifiers);
protected override System.Reflection.MethodInfo GetMethodImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
override this.GetMethodImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Protected Overrides Function GetMethodImpl (name As String, bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As MethodInfo

매개 변수

name
String

메서드 이름입니다.

bindingAttr
BindingFlags

검색을 제어하는 데 사용하는 BindingFlags 비트 플래그의 조합입니다.

binder
Binder

Binder를 구현하는 개체로, 이 메서드와 관련된 속성을 포함합니다.

callConvention
CallingConventions

메서드의 호출 규칙입니다.

types
Type[]

메서드의 매개 변수 형식입니다.

modifiers
ParameterModifier[]

바인딩을 형식이 수정된 매개 변수 서명과 함께 작동하도록 만드는 데 사용되는 매개 변수 한정자 배열입니다.

반환

모듈 수준에서 정의되고 지정된 조건과 일치하는 메서드 또는 해당 메서드가 없는 경우 null입니다.

예외

namenull이거나, typesnull이거나, types의 요소가 null인 경우

설명

이 메서드는 상속된 메서드의 모든 오버로드에 대한 구현을 Module.GetMethod 제공합니다. 상속된 Module.GetMethod 메서드를 사용하여 모듈 수준에서 선언된 메서드를 가져옵니다. 모듈 수준 메서드는 메서드를 사용하여 내보낸 코드에 DefineGlobalMethod 정의됩니다.

중요

모듈 수준 메서드는 모듈에 대해 메서드가 CreateGlobalFunctions 호출될 때까지 검색할 수 없습니다.

적용 대상

추가 정보