MethodBase.GetMethodFromHandle Method (RuntimeMethodHandle)

May 11, 2014

Gets method information for the method that is represented by the specified handle.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public static MethodBase GetMethodFromHandle(
	RuntimeMethodHandle handle
)

Parameters

handle
Type: System.RuntimeMethodHandle
The method's handle.

Return Value

Type: System.Reflection.MethodBase
The method that is represented by handle.

ExceptionCondition
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 null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft