Export (0) Print
Expand All

Assembly.LoadModule Method (String, Byte[])

Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file.

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

public Module LoadModule (
	string moduleName,
	byte[] rawModule
)
public final Module LoadModule (
	String moduleName, 
	byte[] rawModule
)
public final function LoadModule (
	moduleName : String, 
	rawModule : byte[]
) : Module
Not applicable.

Parameters

moduleName

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

rawModule

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

Return Value

The loaded Module.

Exception typeCondition

ArgumentNullException

moduleName or rawModule is a null reference (Nothing in Visual Basic).

ArgumentException

moduleName does not match a file entry in this assembly's manifest.

BadImageFormatException

rawModule is not a valid module.

FileLoadException

A file that was found could not be loaded.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft