Rediger

Del via


_Assembly.LoadModule Method

Definition

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

Overloads

LoadModule(String, Byte[], Byte[])

Provides COM objects with version-independent access to the LoadModule(String, Byte[], Byte[]) method.

LoadModule(String, Byte[])

Provides COM objects with version-independent access to the LoadModule(String, Byte[]) method.

Remarks

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

The LoadModule members load the module internal to this assembly.

LoadModule(String, Byte[], Byte[])

Provides COM objects with version-independent access to the LoadModule(String, Byte[], Byte[]) method.

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

Parameters

moduleName
String

Name of the module. 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.

Remarks

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. The raw bytes representing the symbols for the module are also loaded.

See also

Applies to

LoadModule(String, Byte[])

Provides COM objects with version-independent access to the LoadModule(String, Byte[]) method.

public:
 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
Public Function LoadModule (moduleName As String, rawModule As Byte()) As Module

Parameters

moduleName
String

Name of the module. 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.

Remarks

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.

See also

Applies to