Deprecated. Returns the token in the original module for the MethodInfo.
[Visual Basic] Overridable Public Function GetMethodDefToken( _ ByVal method As MethodInfo _ ) As MethodToken [C#] public virtual MethodToken GetMethodDefToken( MethodInfo method ); [C++] public: virtual MethodToken GetMethodDefToken( MethodInfo* method ); [JScript] public function GetMethodDefToken( method : MethodInfo ) : MethodToken;
The requested method token.
Exception Type | Condition |
---|---|
ArgumentNullException | if method is a null reference (in Visual Basic Nothing) |
InvalidOperationException | if method is not defined in this module |
This method is obsolete and will be removed in a future release.
ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace