MethodBuilder.MethodHandle Property

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

Retrieves the internal handle for the method. Use this handle to access the underlying metadata handle.

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

Syntax

'Declaration
Public Overrides ReadOnly Property MethodHandle As RuntimeMethodHandle
public override RuntimeMethodHandle MethodHandle { get; }

Property Value

Type: System.RuntimeMethodHandle
The internal handle for the method. Use this handle to access the underlying metadata handle.

Exceptions

Exception Condition
NotSupportedException

This method is not currently supported. Retrieve the method by using Type.GetMethod on the completed type, and then call MethodHandle on the returned MethodInfo.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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