MethodBase.GetMethodFromHandle Method (RuntimeMethodHandle)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets method information for the method that is represented by the specified handle.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Shared Function GetMethodFromHandle ( _ handle As RuntimeMethodHandle _ ) As MethodBase
Parameters
- handle
- Type: System.RuntimeMethodHandle
The method's handle.
| Exception | Condition |
|---|---|
| ArgumentException | handle is invalid. |
| MethodAccessException | This member is invoked late-bound through mechanisms such as Type.InvokeMember. |
Handles are valid only in the application domain in which they were obtained.
Version Notes
Windows Phone
GetMethodFromHandle does not throw any exception when an invalid handle is passed as input. Instead, it returns Nothing.
Show: