ModuleHandle Struct
Definition
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.
Represents a runtime handle for a module.
public value class ModuleHandle
public value class ModuleHandle : IEquatable<ModuleHandle>
public struct ModuleHandle
public struct ModuleHandle : IEquatable<ModuleHandle>
[System.Runtime.InteropServices.ComVisible(true)]
public struct ModuleHandle
type ModuleHandle = struct
[<System.Runtime.InteropServices.ComVisible(true)>]
type ModuleHandle = struct
Public Structure ModuleHandle
Public Structure ModuleHandle
Implements IEquatable(Of ModuleHandle)
- Inheritance
- Attributes
- Implements
Remarks
The ResolveFieldHandle, ResolveMethodHandle, and ResolveTypeHandle methods provide efficient resolution of metadata tokens to runtime handles for fields, methods, and types in the current module.
Fields
EmptyHandle |
Represents an empty module handle. |
Properties
MDStreamVersion |
Gets the metadata stream version. |
Methods
Equals(ModuleHandle) |
Returns a Boolean value indicating whether the specified ModuleHandle structure is equal to the current ModuleHandle. |
Equals(Object) |
Returns 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. |
Operators
Equality(ModuleHandle, ModuleHandle) |
Tests whether two ModuleHandle structures are equal. |
Inequality(ModuleHandle, ModuleHandle) |
Tests whether two ModuleHandle structures are unequal. |
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기