Export (0) Print
Expand All

ModuleHandle Structure

Represents a runtime handle for a module.

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

[ComVisibleAttribute(true)]
public struct 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).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from 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.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodResolveFieldHandle(Int32)Returns a runtime handle for the field identified by the specified metadata token.
Public methodResolveFieldHandle(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.
Public methodResolveMethodHandle(Int32)Returns a runtime method handle for the method or constructor identified by the specified metadata token.
Public methodResolveMethodHandle(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.
Public methodResolveTypeHandle(Int32)Returns a runtime type handle for the type identified by the specified metadata token.
Public methodResolveTypeHandle(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.
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 static 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, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

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

Community Additions

ADD
Show:
© 2014 Microsoft