ModuleHandle Struct
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
The ResolveFieldHandle, ResolveMethodHandle, and ResolveTypeHandle methods provide efficient resolution of metadata tokens to runtime handles for fields, methods, and types in the current module.
Empty |
Represents an empty module handle. |
MDStream |
Gets the metadata stream version. |
Equals(Module |
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. |
Get |
Returns the hash code for this instance. |
Get |
Returns a runtime handle for the field identified by the specified metadata token. |
Get |
Returns a runtime method handle for the method or constructor identified by the specified metadata token. |
Get |
Returns a runtime type handle for the type identified by the specified metadata token. |
Resolve |
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. |
Resolve |
Returns a runtime handle for the field identified by the specified metadata token. |
Resolve |
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. |
Resolve |
Returns a runtime method handle for the method or constructor identified by the specified metadata token. |
Resolve |
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. |
Resolve |
Returns a runtime type handle for the type identified by the specified metadata token. |
Equality(Module |
Tests whether two ModuleHandle structures are equal. |
Inequality(Module |
Tests whether two ModuleHandle structures are unequal. |
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |