ModuleBuilder.GetMethodToken ModuleBuilder.GetMethodToken ModuleBuilder.GetMethodToken ModuleBuilder.GetMethodToken Method

Definition

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

Overloads

GetMethodToken(MethodInfo) GetMethodToken(MethodInfo) GetMethodToken(MethodInfo) GetMethodToken(MethodInfo)

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

GetMethodToken(MethodInfo, IEnumerable<Type>) GetMethodToken(MethodInfo, IEnumerable<Type>) GetMethodToken(MethodInfo, IEnumerable<Type>) GetMethodToken(MethodInfo, IEnumerable<Type>)

Returns the token used to identify the method that has the specified attributes and parameter types within this module.

GetMethodToken(MethodInfo) GetMethodToken(MethodInfo) GetMethodToken(MethodInfo) GetMethodToken(MethodInfo)

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

public:
 System::Reflection::Emit::MethodToken GetMethodToken(System::Reflection::MethodInfo ^ method);
public System.Reflection.Emit.MethodToken GetMethodToken (System.Reflection.MethodInfo method);
member this.GetMethodToken : System.Reflection.MethodInfo -> System.Reflection.Emit.MethodToken
Public Function GetMethodToken (method As MethodInfo) As MethodToken

Parameters

method
MethodInfo MethodInfo MethodInfo MethodInfo

The method to get a token for.

Returns

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

Exceptions

GetMethodToken(MethodInfo, IEnumerable<Type>) GetMethodToken(MethodInfo, IEnumerable<Type>) GetMethodToken(MethodInfo, IEnumerable<Type>) GetMethodToken(MethodInfo, IEnumerable<Type>)

Returns the token used to identify the method that has the specified attributes and parameter types within this module.

public:
 System::Reflection::Emit::MethodToken GetMethodToken(System::Reflection::MethodInfo ^ method, System::Collections::Generic::IEnumerable<Type ^> ^ optionalParameterTypes);
public System.Reflection.Emit.MethodToken GetMethodToken (System.Reflection.MethodInfo method, System.Collections.Generic.IEnumerable<Type> optionalParameterTypes);
member this.GetMethodToken : System.Reflection.MethodInfo * seq<Type> -> System.Reflection.Emit.MethodToken
Public Function GetMethodToken (method As MethodInfo, optionalParameterTypes As IEnumerable(Of Type)) As MethodToken

Parameters

method
MethodInfo MethodInfo MethodInfo MethodInfo

The method to get a token for.

optionalParameterTypes
IEnumerable<Type>

A collection of the types of the optional parameters to the method.

Returns

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

Exceptions

Applies to