ModuleBuilder::GetMethodToken Method (MethodInfo^)
.NET Framework (current version)
Returns the token used to identify the specified method within this module.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- method
-
Type:
System.Reflection::MethodInfo^
The method to get a token for.
Return Value
Type: System.Reflection.Emit::MethodTokenThe 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
Available since 1.1
Silverlight
Available since 2.0
Show: