Freigeben über


MethodBase.GetMethodFromHandle Method (RuntimeMethodHandle)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Shared Function GetMethodFromHandle ( _
    handle As RuntimeMethodHandle _
) As MethodBase
public static MethodBase GetMethodFromHandle(
    RuntimeMethodHandle handle
)

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentException

handle is invalid.

MethodAccessException

This member is invoked late-bound through mechanisms such as Type.InvokeMember.

Remarks

Handles are valid only in the application domain in which they were obtained.

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

 GetMethodFromHandle does not throw any exception when an invalid handle is passed as input. Instead, it returns nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.