ModuleBuilder.GetMethodToken Method

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

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

[SecuritySafeCriticalAttribute]
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.

ExceptionCondition
ArgumentNullException

method is null.

InvalidOperationException

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

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show: