This documentation is archived and is not being maintained.
ModuleHandle Structure
Visual Studio 2010
Represents a runtime handle for a module.
Assembly: mscorlib (in mscorlib.dll)
The ModuleHandle type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | 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. (Overrides ValueType::Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for this instance. (Overrides ValueType::GetHashCode().) |
![]() | GetRuntimeFieldHandleFromMetadataToken | Returns a runtime handle for the field identified by the specified metadata token. |
![]() | GetRuntimeMethodHandleFromMetadataToken | Returns a runtime method handle for the method or constructor identified by the specified metadata token. |
![]() | GetRuntimeTypeHandleFromMetadataToken | Returns a runtime type handle for the type identified by the specified metadata token. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ResolveFieldHandle(Int32) | Returns a runtime handle for the field identified by the specified metadata token. |
![]() | ResolveFieldHandle(Int32, array<RuntimeTypeHandle>, array<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, array<RuntimeTypeHandle>, array<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, array<RuntimeTypeHandle>, array<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. |
![]() | ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Tests whether two ModuleHandle structures are equal. |
![]() ![]() | Inequality | Tests whether two ModuleHandle structures are unequal. |
The static ResolveFieldHandle, ResolveMethodHandle, and ResolveTypeHandle methods provide efficient resolution of metadata tokens to runtime handles for fields, methods, and types in the current module.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:





