System.Reflection.Assembly.Load Method

Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols and specifying the source for the security context. The assembly is loaded into the application domain of the caller.

Syntax

public static Assembly Load (byte[] rawAssembly, byte[] rawSymbolStore, System.Security.SecurityContextSource securityContextSource)

Parameters

rawAssembly
A byte array that is a COFF-based image containing an emitted assembly.
rawSymbolStore
A byte array that contains the raw bytes representing the symbols for the assembly.
securityContextSource
The source of the security context.

Returns

The loaded assembly.

Remarks

The assembly is loaded into the application domain of the caller using the specified source for the security context. If rawSymbolStore was specified, the raw bytes that represent the symbols for the assembly are also loaded.

Requirements

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