MemberDescriptor.FindMethod 메서드

정의

리플렉션을 통해 지정된 메서드를 찾습니다.

오버로드

FindMethod(Type, String, Type[], Type)

리플렉션을 통해 지정된 메서드를 찾습니다. 이때 공용 메서드만 검색합니다.

FindMethod(Type, String, Type[], Type, Boolean)

리플렉션을 통해 지정된 메서드를 찾습니다. 이때 공용 메서드만 검색하는 옵션을 사용합니다.

FindMethod(Type, String, Type[], Type)

Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs

리플렉션을 통해 지정된 메서드를 찾습니다. 이때 공용 메서드만 검색합니다.

protected:
 static System::Reflection::MethodInfo ^ FindMethod(Type ^ componentClass, System::String ^ name, cli::array <Type ^> ^ args, Type ^ returnType);
protected static System.Reflection.MethodInfo FindMethod (Type componentClass, string name, Type[] args, Type returnType);
protected static System.Reflection.MethodInfo? FindMethod (Type componentClass, string name, Type[] args, Type returnType);
static member FindMethod : Type * string * Type[] * Type -> System.Reflection.MethodInfo
Protected Shared Function FindMethod (componentClass As Type, name As String, args As Type(), returnType As Type) As MethodInfo

매개 변수

componentClass
Type

해당 메서드가 들어 있는 구성 요소입니다.

name
String

찾을 메서드의 이름입니다.

args
Type[]

오버로드된 메서드 중에서 선택하는 데 사용되는, 메서드의 매개 변수 배열입니다.

returnType
Type

해당 메서드에 대해 반환할 형식입니다.

반환

메서드를 나타내는 MethodInfo입니다. 이 메서드가 없는 경우에는 null입니다.

적용 대상

FindMethod(Type, String, Type[], Type, Boolean)

Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs

리플렉션을 통해 지정된 메서드를 찾습니다. 이때 공용 메서드만 검색하는 옵션을 사용합니다.

protected:
 static System::Reflection::MethodInfo ^ FindMethod(Type ^ componentClass, System::String ^ name, cli::array <Type ^> ^ args, Type ^ returnType, bool publicOnly);
protected static System.Reflection.MethodInfo FindMethod (Type componentClass, string name, Type[] args, Type returnType, bool publicOnly);
protected static System.Reflection.MethodInfo? FindMethod (Type componentClass, string name, Type[] args, Type returnType, bool publicOnly);
static member FindMethod : Type * string * Type[] * Type * bool -> System.Reflection.MethodInfo
Protected Shared Function FindMethod (componentClass As Type, name As String, args As Type(), returnType As Type, publicOnly As Boolean) As MethodInfo

매개 변수

componentClass
Type

해당 메서드가 들어 있는 구성 요소입니다.

name
String

찾을 메서드의 이름입니다.

args
Type[]

오버로드된 메서드 중에서 선택하는 데 사용되는, 메서드의 매개 변수 배열입니다.

returnType
Type

해당 메서드에 대해 반환할 형식입니다.

publicOnly
Boolean

공용 메서드로 검색을 제한할지 여부를 나타냅니다.

반환

메서드를 나타내는 MethodInfo입니다. 이 메서드가 없는 경우에는 null입니다.

적용 대상