Assembly.LoadModule Assembly.LoadModule Assembly.LoadModule Assembly.LoadModule Method

Definition

Loads the module internal to this assembly.

Overloads

LoadModule(String, Byte[]) LoadModule(String, Byte[]) LoadModule(String, Byte[]) LoadModule(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.

LoadModule(String, Byte[], Byte[]) LoadModule(String, Byte[], Byte[]) LoadModule(String, Byte[], Byte[]) LoadModule(String, Byte[], 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. The raw bytes representing the symbols for the module are also loaded.

LoadModule(String, Byte[]) LoadModule(String, Byte[]) LoadModule(String, Byte[]) LoadModule(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.

public:
 virtual System::Reflection::Module ^ LoadModule(System::String ^ moduleName, cli::array <System::Byte> ^ rawModule);
public System.Reflection.Module LoadModule (string moduleName, byte[] rawModule);
abstract member LoadModule : string * byte[] -> System.Reflection.Module
override this.LoadModule : string * byte[] -> System.Reflection.Module
Public Function LoadModule (moduleName As String, rawModule As Byte()) As Module

Parameters

moduleName
String String String String

The name of the module. This string must correspond to a file name in this assembly's manifest.

rawModule
Byte[]

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

Returns

The loaded module.

Implements

Exceptions

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

A file that was found could not be loaded.

Security

SecurityPermission
to provide evidence. Associated enumeration: ControlEvidence

LoadModule(String, Byte[], Byte[]) LoadModule(String, Byte[], Byte[]) LoadModule(String, Byte[], Byte[]) LoadModule(String, Byte[], 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. The raw bytes representing the symbols for the module are also loaded.

public:
 virtual System::Reflection::Module ^ LoadModule(System::String ^ moduleName, cli::array <System::Byte> ^ rawModule, cli::array <System::Byte> ^ rawSymbolStore);
public virtual System.Reflection.Module LoadModule (string moduleName, byte[] rawModule, byte[] rawSymbolStore);
abstract member LoadModule : string * byte[] * byte[] -> System.Reflection.Module
override this.LoadModule : string * byte[] * byte[] -> System.Reflection.Module
Public Overridable Function LoadModule (moduleName As String, rawModule As Byte(), rawSymbolStore As Byte()) As Module

Parameters

moduleName
String String String String

The name of the module. This string must correspond to a file name in this assembly's manifest.

rawModule
Byte[]

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

rawSymbolStore
Byte[]

A byte array containing the raw bytes representing the symbols for the module. Must be null if this is a resource file.

Returns

The loaded module.

Implements

Exceptions

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

A file that was found could not be loaded.

Security

SecurityPermission
to provide evidence. Associated enumeration: ControlEvidence

Applies to