ModuleBuilder.GetMethodToken Method (MethodInfo)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the token used to identify the specified method within this module.

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

public MethodToken GetMethodToken(
	MethodInfo method
)

Parameters

method
Type: System.Reflection.MethodInfo

The method to get a token for.

Return Value

Type: System.Reflection.Emit.MethodToken

The token used to identify the specified method within this module.

Exception Condition
ArgumentNullException

method is null.

InvalidOperationException

The declaring type for the method is not in this module.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show: