Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the token used to identify the specified method within this module.
GetMethodToken(MethodInfo) |
Returns the token used to identify the specified method within this module. |
GetMethodToken(MethodInfo, IEnumerable<Type>) |
Returns the token used to identify the method that has the specified attributes and parameter types within this module. |
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
The method to get a token for.
The token used to identify the specified method within this module.
method
is null
.
The declaring type for the method is not in this module.
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
The method to get a token for.
A collection of the types of the optional parameters to the method.
The token used to identify the specified method within this module.
method
is null
.
The declaring type for the method is not in this module.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in