MethodBase.GetMethodFromHandle Method (RuntimeMethodHandle, RuntimeTypeHandle)
Assembly: mscorlib (in mscorlib.dll)
[ComVisibleAttribute(false)] public static MethodBase GetMethodFromHandle ( RuntimeMethodHandle handle, RuntimeTypeHandle declaringType )
/** @attribute ComVisibleAttribute(false) */ public static MethodBase GetMethodFromHandle ( RuntimeMethodHandle handle, RuntimeTypeHandle declaringType )
ComVisibleAttribute(false) public static function GetMethodFromHandle ( handle : RuntimeMethodHandle, declaringType : RuntimeTypeHandle ) : MethodBase
Parameters
- handle
A handle to the internal metadata representation of a constructor or method.
- declaringType
A handle to the generic type that defines the constructor or method.
Return Value
A MethodBase object representing the method or constructor specified by handle, in the generic type specified by declaringType.Handles are valid only in the application domain in which they were obtained.
A RuntimeMethodHandle structure for a constructor or method of a generic type can represent different MethodBase objects, depending on the types specified for the type parameters of the generic type. For example, if class G<T> (class G(Of T) in Visual Basic, generic <T> ref class G in C++) has a method that returns type T, the MethodBase object for that method in a constructed class such as G<int> is different from the MethodBase object for that method in the generic type definition.
- ReflectionPermission when invoked late-bound through mechanisms such as Type.InvokeMember. Associated enumeration: ReflectionPermissionFlag.MemberAccess.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.