ModuleHandle 结构

定义

表示模块的运行时句柄。Represents a runtime handle for a module.

public value class ModuleHandle
[System.Runtime.InteropServices.ComVisible(true)]
public struct ModuleHandle
type ModuleHandle = struct
Public Structure ModuleHandle
继承
ModuleHandle
属性

注解

ResolveFieldHandle、和方法ResolveTypeHandle为当前模块中的字段、方法和类型的运行时句柄提供高效的元数据标记解析。 ResolveMethodHandleThe ResolveFieldHandle, ResolveMethodHandle, and ResolveTypeHandle methods provide efficient resolution of metadata tokens to runtime handles for fields, methods, and types in the current module.

字段

EmptyHandle

表示一个空模块句柄。Represents an empty module handle.

属性

MDStreamVersion

获取元数据流版本。Gets the metadata stream version.

方法

Equals(ModuleHandle)

返回一个 Boolean 值,该值指示指定的 ModuleHandle 结构是否等于当前的 ModuleHandleReturns a Boolean value indicating whether the specified ModuleHandle structure is equal to the current ModuleHandle.

Equals(Object)

返回一个 Boolean 值,该值指示指定对象是否是一个 ModuleHandle 结构,以及是否等于当前的 ModuleHandleReturns a Boolean value indicating whether the specified object is a ModuleHandle structure, and equal to the current ModuleHandle.

GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

GetRuntimeFieldHandleFromMetadataToken(Int32)

返回由指定元数据标记标识的字段的运行时句柄。Returns a runtime handle for the field identified by the specified metadata token.

GetRuntimeMethodHandleFromMetadataToken(Int32)

返回由指定元数据标记标识的方法或构造函数的运行时方法句柄。Returns a runtime method handle for the method or constructor identified by the specified metadata token.

GetRuntimeTypeHandleFromMetadataToken(Int32)

返回由指定元数据标记标识的类型的运行时类型句柄。Returns a runtime type handle for the type identified by the specified metadata token.

ResolveFieldHandle(Int32)

返回由指定元数据标记标识的字段的运行时句柄。Returns a runtime handle for the field identified by the specified metadata token.

ResolveFieldHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[])

返回由指定元数据标记标识的字段的运行时字段句柄,指定标记所在范围内的类型和方法的泛型类型参数。Returns a runtime field handle for the field identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.

ResolveMethodHandle(Int32)

返回由指定元数据标记标识的方法或构造函数的运行时方法句柄。Returns a runtime method handle for the method or constructor identified by the specified metadata token.

ResolveMethodHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[])

返回由指定元数据标记标识的方法或构造函数的运行时方法句柄,指定标记所在范围内的类型和方法的泛型类型参数。Returns a runtime method handle for the method or constructor identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.

ResolveTypeHandle(Int32)

返回由指定元数据标记标识的类型的运行时类型句柄。Returns a runtime type handle for the type identified by the specified metadata token.

ResolveTypeHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[])

返回由指定元数据标记标识的类型的运行时类型句柄,指定标记所在范围内的类型和方法的泛型类型参数。Returns a runtime type handle for the type identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.

操作员

Equality(ModuleHandle, ModuleHandle)

测试两个 ModuleHandle 结构是否相等。Tests whether two ModuleHandle structures are equal.

Inequality(ModuleHandle, ModuleHandle)

测试两个 ModuleHandle 结构是否相等。Tests whether two ModuleHandle structures are unequal.

适用于

另请参阅