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.GetMethodToken

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

[Visual Basic]
Public Function GetMethodToken( _
   ByVal method As MethodInfo _
) As MethodToken
[C#]
public MethodToken GetMethodToken(
   MethodInfo method
);
[C++]
public: MethodToken GetMethodToken(
   MethodInfo* method
);
[JScript]
public function GetMethodToken(
   method : MethodInfo
) : MethodToken;

Parameters

method
A MethodToken object representing the method to get a token for.

Return Value

Returns the token used to identify the method represented by method within this module.

Exceptions

Exception Type Condition
ArgumentNullException if method is a null reference (in Visual Basic Nothing)

See Also

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