IReflect.GetMethod 메서드

정의

지정된 메서드에 해당하는 MethodInfo 개체를 검색합니다.

오버로드

GetMethod(String, BindingFlags)

지정된 검색 제약 조건 하에서 지정된 메서드에 해당하는 MethodInfo 개체를 검색합니다.

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

지정된 메서드에 해당하는 MethodInfo 개체를 검색하며 Type 배열을 사용하여, 오버로드된 메서드 중에서 선택합니다.

GetMethod(String, BindingFlags)

지정된 검색 제약 조건 하에서 지정된 메서드에 해당하는 MethodInfo 개체를 검색합니다.

public:
 System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MethodInfo? GetMethod (string name, System.Reflection.BindingFlags bindingAttr);
public System.Reflection.MethodInfo GetMethod (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, bindingAttr As BindingFlags) As MethodInfo

매개 변수

name
String

찾을 멤버의 이름입니다.

bindingAttr
BindingFlags

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

반환

MethodInfo

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

예외

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

추가 정보

적용 대상

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

지정된 메서드에 해당하는 MethodInfo 개체를 검색하며 Type 배열을 사용하여, 오버로드된 메서드 중에서 선택합니다.

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

매개 변수

name
String

찾을 멤버의 이름입니다.

bindingAttr
BindingFlags

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

binder
Binder

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

types
Type[]

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

modifiers
ParameterModifier[]

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

반환

MethodInfo

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

예외

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

설명

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

추가 정보

적용 대상