_Assembly.LoadModule Method (String, Byte[])


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides COM objects with version-independent access to the LoadModule method.

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

Module LoadModule(
	string moduleName,
	byte[] rawModule


Type: System.String

Name of the module. Must correspond to a file name in this assembly's manifest.

Type: System.Byte[]

A byte array that is a COFF-based image containing an emitted module, or a resource.

Return Value

Type: System.Reflection.Module

The loaded Module.

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The LoadModule method loads the module, internal to this assembly, with a Common Object File Format (COFF)-based image containing an emitted module, or a resource file.

.NET Framework
Available since 1.1
Return to top