Module.GetMethod 메서드

정의

지정된 조건이 있는 메서드를 반환합니다.

오버로드

Name Description
GetMethod(String)

지정된 이름을 가진 메서드를 반환합니다.

GetMethod(String, Type[])

지정된 이름 및 매개 변수 형식이 있는 메서드를 반환합니다.

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

지정된 이름, 바인딩 정보, 호출 규칙, 매개 변수 형식 및 한정자가 있는 메서드를 반환합니다.

GetMethod(String)

지정된 이름을 가진 메서드를 반환합니다.

public:
 System::Reflection::MethodInfo ^ GetMethod(System::String ^ name);
public System.Reflection.MethodInfo GetMethod(string name);
member this.GetMethod : string -> System.Reflection.MethodInfo
Public Function GetMethod (name As String) As MethodInfo

매개 변수

name
String

메서드 이름입니다.

반품

MethodInfo 지정된 이름을 가진 개체이거나 null 메서드가 없는 경우

예외

namenull입니다.

적용 대상

GetMethod(String, Type[])

지정된 이름 및 매개 변수 형식이 있는 메서드를 반환합니다.

public:
 System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, cli::array <Type ^> ^ types);
public System.Reflection.MethodInfo GetMethod(string name, Type[] types);
member this.GetMethod : string * Type[] -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, types As Type()) As MethodInfo

매개 변수

name
String

메서드 이름입니다.

types
Type[]

검색할 매개 변수 형식입니다.

반품

MethodInfo 지정된 조건에 따라 또는 null 메서드가 없는 경우 개체입니다.

예외

name is null, types is null, 또는 types (i)가 .입니다 null.

적용 대상

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

지정된 이름, 바인딩 정보, 호출 규칙, 매개 변수 형식 및 한정자가 있는 메서드를 반환합니다.

public:
 System::Reflection::MethodInfo ^ GetMethod(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);
public System.Reflection.MethodInfo GetMethod(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
member this.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Public Function GetMethod (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[]

형식이 수정된 매개 변수 서명과 바인딩을 사용하는 데 사용되는 매개 변수 한정자의 배열입니다.

반품

MethodInfo 지정된 조건에 따라 또는 null 메서드가 없는 경우 개체입니다.

예외

name is null, types is null, 또는 types (i)가 .입니다 null.

추가 정보

적용 대상