MethodBase.GetMethodFromHandle 메서드

정의

지정된 핸들을 사용하여 메서드 정보를 가져옵니다.

오버로드

GetMethodFromHandle(RuntimeMethodHandle)

메서드의 내부 메타데이터 표현(핸들)을 사용하여 메서드 정보를 가져옵니다.

GetMethodFromHandle(RuntimeMethodHandle, RuntimeTypeHandle)

지정된 제네릭 형식에 대해 지정된 핸들이 나타내는 생성자 또는 메서드의 MethodBase 개체를 가져옵니다.

GetMethodFromHandle(RuntimeMethodHandle)

메서드의 내부 메타데이터 표현(핸들)을 사용하여 메서드 정보를 가져옵니다.

public:
 static System::Reflection::MethodBase ^ GetMethodFromHandle(RuntimeMethodHandle handle);
public static System.Reflection.MethodBase GetMethodFromHandle (RuntimeMethodHandle handle);
public static System.Reflection.MethodBase? GetMethodFromHandle (RuntimeMethodHandle handle);
static member GetMethodFromHandle : RuntimeMethodHandle -> System.Reflection.MethodBase
Public Shared Function GetMethodFromHandle (handle As RuntimeMethodHandle) As MethodBase

매개 변수

handle
RuntimeMethodHandle

메서드의 핸들입니다.

반환

MethodBase

메서드에 대한 정보가 들어 있는 MethodBase입니다.

예외

handle이 잘못되었습니다.

설명

핸들은는 가져온 애플리케이션 도메인 에서만 유효 합니다.

적용 대상

GetMethodFromHandle(RuntimeMethodHandle, RuntimeTypeHandle)

지정된 제네릭 형식에 대해 지정된 핸들이 나타내는 생성자 또는 메서드의 MethodBase 개체를 가져옵니다.

public:
 static System::Reflection::MethodBase ^ GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType);
public static System.Reflection.MethodBase GetMethodFromHandle (RuntimeMethodHandle handle, RuntimeTypeHandle declaringType);
public static System.Reflection.MethodBase? GetMethodFromHandle (RuntimeMethodHandle handle, RuntimeTypeHandle declaringType);
[System.Runtime.InteropServices.ComVisible(false)]
public static System.Reflection.MethodBase GetMethodFromHandle (RuntimeMethodHandle handle, RuntimeTypeHandle declaringType);
static member GetMethodFromHandle : RuntimeMethodHandle * RuntimeTypeHandle -> System.Reflection.MethodBase
[<System.Runtime.InteropServices.ComVisible(false)>]
static member GetMethodFromHandle : RuntimeMethodHandle * RuntimeTypeHandle -> System.Reflection.MethodBase
Public Shared Function GetMethodFromHandle (handle As RuntimeMethodHandle, declaringType As RuntimeTypeHandle) As MethodBase

매개 변수

handle
RuntimeMethodHandle

생성자 또는 메서드의 내부 메타데이터 표현에 대한 핸들입니다.

declaringType
RuntimeTypeHandle

생성자 또는 메서드를 정의하는 제네릭 형식에 대한 핸들입니다.

반환

MethodBase

handle으로 지정된 제네릭 형식에서 declaringType로 지정된 메서드 또는 생성자를 나타내는 MethodBase 개체입니다.

특성

예외

handle이 잘못되었습니다.

설명

핸들은는 가져온 애플리케이션 도메인 에서만 유효 합니다.

RuntimeMethodHandle 제네릭 형식의 생성자 또는 메서드에 대한 구조체는 제네릭 형식의 형식 매개 변수에 지정된 형식에 따라 다른 MethodBase 개체를 나타낼 수 있습니다. 예를 들어(class G(Of T)Visual Basic C++에서) 형식T을 반환하는 메서드가 있는 경우 class G<T> 생성된 MethodBase 클래스 G<int> 의 해당 메서드에 대한 개체가 제네릭 형식 정의의 해당 메서드에 대한 개체와 다릅니다 MethodBase generic <T> ref class G.

적용 대상