NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ModuleBuilder.GetMethodDefToken

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;

Parameters

method
The method for which the token is requested.

Return Value

The requested method token.

Exceptions

Exception Type Condition
ArgumentNullException if method is a null reference (in Visual Basic Nothing)
InvalidOperationException if method is not defined in this module

Remarks

This method is obsolete and will be removed in a future release.

See Also

ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace