ModuleBuilder.GetMethodToken Method (MethodInfo)

 

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

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

Public Function GetMethodToken (
	method As MethodInfo
) As MethodToken

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: