Uredi

Deli z drugimi prek


ModuleBuilder.GetMethodMetadataToken Method

Definition

Overloads

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.

GetMethodMetadataToken(ConstructorInfo)

Source:
ModuleBuilder.cs
Source:
ModuleBuilder.cs

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

Parameters

constructor
ConstructorInfo

The ConstructorInfo for which to retrieve the token.

Returns

An integer representing the metadata token.

Remarks

Tokens are used to identify objects when the objects are used in IL instructions. Tokens are always relative to the Module.

Applies to

GetMethodMetadataToken(MethodInfo)

Source:
ModuleBuilder.cs
Source:
ModuleBuilder.cs

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

Parameters

method
MethodInfo

The MethodInfo for which to retrieve the token.

Returns

An integer representing the metadata token.

Remarks

Tokens are used to identify objects when the objects are used in IL instructions. Tokens are always relative to the Module.

Applies to