MethodBase.GetMethodFromHandle 메서드

정의

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

오버로드

Name Description
GetMethodFromHandle(RuntimeMethodHandle)

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

GetMethodFromHandle(RuntimeMethodHandle, RuntimeTypeHandle)

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

GetMethodFromHandle(RuntimeMethodHandle)

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

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 메서드에 대한 정보를 포함하는 정보입니다.

예외

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);
[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 로 지정된 제네릭 형식declaringType에서 지정한 handle메서드 또는 생성자를 나타내는 개체입니다.

특성

예외

handle 가 잘못되었습니다.

설명

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

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

적용 대상