RuntimeReflectionExtensions.GetRuntimeMethod(Type, String, Type[]) 메서드

정의

지정된 메서드를 나타내는 개체를 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::MethodInfo ^ GetRuntimeMethod(Type ^ type, System::String ^ name, cli::array <Type ^> ^ parameters);
public static System.Reflection.MethodInfo GetRuntimeMethod (this Type type, string name, Type[] parameters);
public static System.Reflection.MethodInfo? GetRuntimeMethod (this Type type, string name, Type[] parameters);
static member GetRuntimeMethod : Type * string * Type[] -> System.Reflection.MethodInfo
<Extension()>
Public Function GetRuntimeMethod (type As Type, name As String, parameters As Type()) As MethodInfo

매개 변수

type
Type

메서드가 포함된 형식입니다.

name
String

메서드의 이름입니다.

parameters
Type[]

매서드의 매개 변수를 포함하는 배열

반환

MethodInfo

지정된 메서드를 나타내는 개체이며 메서드가 없는 경우 null을 반환합니다.

예외

type이(가) null인 경우

또는

name이(가) null인 경우

지정한 이름을 가진 메서드가 둘 이상 있습니다.

적용 대상

추가 정보