ModuleHandle ModuleHandle ModuleHandle ModuleHandle Struct

定義

表示模組的執行階段控制代碼。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
繼承
ModuleHandleModuleHandleModuleHandleModuleHandle
屬性

備註

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 EmptyHandle EmptyHandle EmptyHandle

表示空的模組控制代碼。Represents an empty module handle.

屬性

MDStreamVersion MDStreamVersion MDStreamVersion MDStreamVersion

取得中繼資料流的版本。Gets the metadata stream version.

方法

Equals(ModuleHandle) Equals(ModuleHandle) Equals(ModuleHandle) Equals(ModuleHandle)

傳回 Boolean 值,指出指定的 ModuleHandle 結構是否等於目前的 ModuleHandleReturns a Boolean value indicating whether the specified ModuleHandle structure is equal to the current ModuleHandle.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

傳回 Boolean 值,指出指定的物件是否為 ModuleHandle 結構,並等於目前的 ModuleHandleReturns a Boolean value indicating whether the specified object is a ModuleHandle structure, and equal to the current ModuleHandle.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

傳回這個執行個體的雜湊碼。Returns the hash code for this instance.

GetRuntimeFieldHandleFromMetadataToken(Int32) GetRuntimeFieldHandleFromMetadataToken(Int32) GetRuntimeFieldHandleFromMetadataToken(Int32) GetRuntimeFieldHandleFromMetadataToken(Int32)

傳回指定之中繼資料語彙基元所識別的欄位之執行階段控制代碼。Returns a runtime handle for the field identified by the specified metadata token.

GetRuntimeMethodHandleFromMetadataToken(Int32) GetRuntimeMethodHandleFromMetadataToken(Int32) GetRuntimeMethodHandleFromMetadataToken(Int32) GetRuntimeMethodHandleFromMetadataToken(Int32)

傳回指定之中繼資料語彙基元所識別的方法或建構函式之執行階段方法控制代碼。Returns a runtime method handle for the method or constructor identified by the specified metadata token.

GetRuntimeTypeHandleFromMetadataToken(Int32) GetRuntimeTypeHandleFromMetadataToken(Int32) GetRuntimeTypeHandleFromMetadataToken(Int32) GetRuntimeTypeHandleFromMetadataToken(Int32)

傳回指定之中繼資料語彙基元所識別的型別之執行階段型別控制代碼。Returns a runtime type handle for the type identified by the specified metadata token.

ResolveFieldHandle(Int32) ResolveFieldHandle(Int32) ResolveFieldHandle(Int32) ResolveFieldHandle(Int32)

傳回指定之中繼資料語彙基元所識別的欄位之執行階段控制代碼。Returns a runtime handle for the field identified by the specified metadata token.

ResolveFieldHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) ResolveFieldHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) ResolveFieldHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) 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) ResolveMethodHandle(Int32) ResolveMethodHandle(Int32) ResolveMethodHandle(Int32)

傳回指定之中繼資料語彙基元所識別的方法或建構函式之執行階段方法控制代碼。Returns a runtime method handle for the method or constructor identified by the specified metadata token.

ResolveMethodHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) ResolveMethodHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) ResolveMethodHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) 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) ResolveTypeHandle(Int32) ResolveTypeHandle(Int32) ResolveTypeHandle(Int32)

傳回指定之中繼資料語彙基元所識別的型別之執行階段型別控制代碼。Returns a runtime type handle for the type identified by the specified metadata token.

ResolveTypeHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) ResolveTypeHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) ResolveTypeHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) 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) Equality(ModuleHandle, ModuleHandle) Equality(ModuleHandle, ModuleHandle) Equality(ModuleHandle, ModuleHandle)

測試兩個 ModuleHandle 結構是否相等。Tests whether two ModuleHandle structures are equal.

Inequality(ModuleHandle, ModuleHandle) Inequality(ModuleHandle, ModuleHandle) Inequality(ModuleHandle, ModuleHandle) Inequality(ModuleHandle, ModuleHandle)

測試兩個 ModuleHandle 結構是否不相等。Tests whether two ModuleHandle structures are unequal.

適用於

另請參閱