MethodBase.GetMethodFromHandle Metódus

Definíció

Metódusadatok lekérdezése a megadott leíróval.

Túlterhelések

Name Description
GetMethodFromHandle(RuntimeMethodHandle)

A metódus információinak lekérdezése a metódus belső metaadat-ábrázolásával (leírójával).

GetMethodFromHandle(RuntimeMethodHandle, RuntimeTypeHandle)

MethodBase A megadott leíró által képviselt konstruktor vagy metódus objektumát kéri le a megadott általános típushoz.

GetMethodFromHandle(RuntimeMethodHandle)

Forrás:
MethodBase.CoreCLR.cs
Forrás:
MethodBase.CoreCLR.cs
Forrás:
MethodBase.CoreCLR.cs
Forrás:
MethodBase.CoreCLR.cs
Forrás:
MethodBase.CoreCLR.cs

A metódus információinak lekérdezése a metódus belső metaadat-ábrázolásával (leírójával).

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

Paraméterek

handle
RuntimeMethodHandle

A metódus fogópontja.

Válaszok

A MethodBase metódussal kapcsolatos információkat tartalmazó.

Kivételek

handle érvénytelen.

Megjegyzések

A leírók csak abban az alkalmazástartományban érvényesek, amelyben azokat beszerezték.

A következőre érvényes:

GetMethodFromHandle(RuntimeMethodHandle, RuntimeTypeHandle)

Forrás:
MethodBase.CoreCLR.cs
Forrás:
MethodBase.CoreCLR.cs
Forrás:
MethodBase.CoreCLR.cs
Forrás:
MethodBase.CoreCLR.cs
Forrás:
MethodBase.CoreCLR.cs

MethodBase A megadott leíró által képviselt konstruktor vagy metódus objektumát kéri le a megadott általános típushoz.

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

Paraméterek

handle
RuntimeMethodHandle

Egy konstruktor vagy metódus belső metaadat-ábrázolásának leírója.

declaringType
RuntimeTypeHandle

A konstruktort vagy metódust meghatározó általános típushoz tartozó fogópont.

Válaszok

A MethodBase metódust vagy konstruktort handleképviselő objektum a megadott általános típusban declaringType.

Attribútumok

Kivételek

handle érvénytelen.

Megjegyzések

A leírók csak abban az alkalmazástartományban érvényesek, amelyben azokat beszerezték.

Egy RuntimeMethodHandle konstruktor vagy egy általános típusú metódus struktúrája különböző MethodBase objektumokat jelölhet az általános típus típusparamétereihez megadott típustól függően. Ha például class G<T> (class G(Of T) a Visual Basic) metódusa T típust ad vissza, akkor a metódus MethodBase objektuma egy olyan konstruktált osztályban, mint például a G<int>, eltér az általános típusdefinícióban szereplő MethodBase objektumtól.

A következőre érvényes: