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.
GetMethodMetadataToken(ConstructorInfo) |
When overridden in a derived class, returns the metadata token for the given ConstructorInfo relative to the Module. |
GetMethodMetadataToken(MethodInfo) |
When overridden in a derived class, returns the metadata token for the given MethodInfo relative to the Module. |
When overridden in a derived class, returns the metadata token for the given ConstructorInfo relative to the Module.
public:
abstract int GetMethodMetadataToken(System::Reflection::ConstructorInfo ^ constructor);
public abstract int GetMethodMetadataToken(System.Reflection.ConstructorInfo constructor);
abstract member GetMethodMetadataToken : System.Reflection.ConstructorInfo -> int
Public MustOverride Function GetMethodMetadataToken (constructor As ConstructorInfo) As Integer
The ConstructorInfo for which to retrieve the token.
An integer representing the metadata token.
Tokens are used to identify objects when the objects are used in IL instructions. Tokens are always relative to the Module.
Product | Versions |
---|---|
.NET | 8, 9, 10 |
When overridden in a derived class, returns the metadata token for the given MethodInfo relative to the Module.
public:
abstract int GetMethodMetadataToken(System::Reflection::MethodInfo ^ method);
public abstract int GetMethodMetadataToken(System.Reflection.MethodInfo method);
abstract member GetMethodMetadataToken : System.Reflection.MethodInfo -> int
Public MustOverride Function GetMethodMetadataToken (method As MethodInfo) As Integer
The MethodInfo for which to retrieve the token.
An integer representing the metadata token.
Tokens are used to identify objects when the objects are used in IL instructions. Tokens are always relative to the Module.
Product | Versions |
---|---|
.NET | 8, 9, 10 |
.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