Export (0) Print
Expand All

ModuleHandle Structure

Represents a runtime handle for a module.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)]
public value class ModuleHandle

The ModuleHandle type exposes the following members.

  NameDescription
Public propertyMDStreamVersionGets the metadata stream version.
Top

  NameDescription
Public methodEquals(ModuleHandle)Returns a Boolean value indicating whether the specified ModuleHandle structure is equal to the current ModuleHandle.
Public methodEquals(Object)Returns a Boolean value indicating whether the specified object is a ModuleHandle structure, and equal to the current ModuleHandle. (Overrides ValueType::Equals(Object).)
Public methodGetHashCodeReturns the hash code for this instance. (Overrides ValueType::GetHashCode().)
Public methodGetRuntimeFieldHandleFromMetadataTokenReturns a runtime handle for the field identified by the specified metadata token.
Public methodGetRuntimeMethodHandleFromMetadataTokenReturns a runtime method handle for the method or constructor identified by the specified metadata token.
Public methodGetRuntimeTypeHandleFromMetadataTokenReturns a runtime type handle for the type identified by the specified metadata token.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodResolveFieldHandle(Int32)Returns a runtime handle for the field identified by the specified metadata token.
Public methodResolveFieldHandle(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.
Public methodResolveMethodHandle(Int32)Returns a runtime method handle for the method or constructor identified by the specified metadata token.
Public methodResolveMethodHandle(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.
Public methodResolveTypeHandle(Int32)Returns a runtime type handle for the type identified by the specified metadata token.
Public methodResolveTypeHandle(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.
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

  NameDescription
Public operatorStatic memberEqualityTests whether two ModuleHandle structures are equal.
Public operatorStatic memberInequalityTests whether two ModuleHandle structures are unequal.
Top

  NameDescription
Public fieldStatic memberEmptyHandleRepresents an empty module handle.
Top

The ResolveFieldHandle, ResolveMethodHandle, and ResolveTypeHandle methods provide efficient resolution of metadata tokens to runtime handles for fields, methods, and types in the current module.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft