Assembly.LoadModule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads the module internal to this assembly.
Overloads
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[]) |
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[])
- Source:
- Assembly.cs
- Source:
- Assembly.cs
- Source:
- Assembly.cs
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:
System::Reflection::Module ^ LoadModule(System::String ^ moduleName, cli::array <System::Byte> ^ rawModule);
public:
virtual System::Reflection::Module ^ LoadModule(System::String ^ moduleName, cli::array <System::Byte> ^ rawModule);
public System.Reflection.Module LoadModule (string moduleName, byte[]? rawModule);
public System.Reflection.Module LoadModule (string moduleName, byte[] rawModule);
member this.LoadModule : string * byte[] -> System.Reflection.Module
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
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
or rawModule
is null
.
moduleName
does not match a file entry in this assembly's manifest.
rawModule
is not a valid module.
A file that was found could not be loaded.
Applies to
LoadModule(String, Byte[], Byte[])
- Source:
- Assembly.cs
- Source:
- Assembly.cs
- Source:
- Assembly.cs
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);
public virtual System.Reflection.Module LoadModule (string moduleName, byte[] rawModule, byte[] rawSymbolStore);
public 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
Public Function LoadModule (moduleName As String, rawModule As Byte(), rawSymbolStore As Byte()) As Module
Parameters
- moduleName
- 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
or rawModule
is null
.
moduleName
does not match a file entry in this assembly's manifest.
rawModule
is not a valid module.
A file that was found could not be loaded.