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);
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

コンストラクターまたはメソッドを定義するジェネリック型のハンドル。

返品

declaringTypeで指定されたジェネリック型で、handleで指定されたメソッドまたはコンストラクターを表すMethodBase オブジェクト。

属性

例外

handle が無効です。

注釈

ハンドルは、取得されたアプリケーション ドメインでのみ有効です。

ジェネリック型のコンストラクターまたはメソッドの RuntimeMethodHandle 構造体は、ジェネリック型の型パラメーターに指定された型に応じて、異なる MethodBase オブジェクトを表すことができます。 たとえば、次のようになります。 class G<T> (Visual Basic の class G(Of T)) に型 T を返すメソッドがある場合、G<int> などの構築されたクラス内のそのメソッドのMethodBase オブジェクトは、ジェネリック型定義のそのメソッドの MethodBase オブジェクトとは異なります。

適用対象