AccessibleObject.IReflect.GetMethod 메서드

정의

오버로드

IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

오버로드된 메서드 중에서 선택할 형식 배열을 사용하여 지정된 메서드에 해당하는 MethodInfo 개체를 가져옵니다. 이 멤버에 대한 설명은 GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])를 참조하세요.

IReflect.GetMethod(String, BindingFlags)

지정된 검색 제약 조건에 지정된 메서드에 해당하는 MethodInfo 개체를 가져옵니다. 이 멤버에 대한 설명은 GetMethod(String, BindingFlags)를 참조하세요.

IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

오버로드된 메서드 중에서 선택할 형식 배열을 사용하여 지정된 메서드에 해당하는 MethodInfo 개체를 가져옵니다. 이 멤버에 대한 설명은 GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])를 참조하세요.

 virtual System::Reflection::MethodInfo ^ System.Reflection.IReflect.GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers) = System::Reflection::IReflect::GetMethod;
System.Reflection.MethodInfo IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers);
System.Reflection.MethodInfo? IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, Type[] types, System.Reflection.ParameterModifier[]? modifiers);
abstract member System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
override this.System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, types As Type(), modifiers As ParameterModifier()) As MethodInfo Implements IReflect.GetMethod

매개 변수

name
String

찾을 멤버의 이름입니다.

bindingAttr
BindingFlags

검색을 제어하는 데 사용되는 바인딩 특성입니다.

binder
Binder

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

types
Type[]

오버로드된 메서드 중에서 선택하는 데 사용되는 배열입니다.

modifiers
ParameterModifier[]

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

반환

지정된 모든 매개 변수를 충족하는 요청된 메서드입니다.

구현

예외

개체가 이름이 같은 여러 메서드를 구현하는 경우

설명

반환 값은 메서드 이름, 열거형, System.Reflection.BindingFlags 매개 변수로 지정된 binder 형식 변환의 종류, 오버로드 및 System.Reflection.ParameterInfo 메서드의 시그니처를 설명하는 를 기준으로 일치합니다.

이 멤버는 명시적 인터페이스 멤버 구현이며, AccessibleObject 인스턴스가 IReflect 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다.

적용 대상

IReflect.GetMethod(String, BindingFlags)

지정된 검색 제약 조건에 지정된 메서드에 해당하는 MethodInfo 개체를 가져옵니다. 이 멤버에 대한 설명은 GetMethod(String, BindingFlags)를 참조하세요.

 virtual System::Reflection::MethodInfo ^ System.Reflection.IReflect.GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetMethod;
System.Reflection.MethodInfo IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr);
System.Reflection.MethodInfo? IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr);
abstract member System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
override this.System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
Function GetMethod (name As String, bindingAttr As BindingFlags) As MethodInfo Implements IReflect.GetMethod

매개 변수

name
String

찾을 멤버의 이름입니다.

bindingAttr
BindingFlags

검색을 제어하는 데 사용되는 바인딩 특성입니다.

반환

bindingAttr에 지정된 검색 제약 조건과 메서드 이름이 일치하는, 메서드 정보가 포함된 MethodInfo 개체입니다.

구현

예외

개체가 이름이 같은 여러 메서드를 구현하는 경우

설명

이 멤버는 명시적 인터페이스 멤버 구현이며, AccessibleObject 인스턴스가 IReflect 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다.

적용 대상