Load Method (Byte[])
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the application domain of the caller.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Function Load ( _
rawAssembly As Byte() _
) As Assembly
public static Assembly Load(
byte[] rawAssembly
)
public:
static Assembly^ Load(
array<unsigned char>^ rawAssembly
)
static member Load :
rawAssembly:byte[] -> Assembly
public static function Load(
rawAssembly : byte[]
) : Assembly
Parameters
- rawAssembly
Type: array<System. . :: . .Byte> [] () [] []
A byte array that is a COFF-based image containing an emitted assembly.
Return Value
Type: System.Reflection. . :: . .Assembly
The loaded assembly.
Remarks
The trust level of an assembly that is loaded by using this method is the same as the trust level of the calling assembly. To load an assembly from a byte array with the trust level of the application domain, use the Load(array<Byte>[]()[][], array<Byte>[]()[][], SecurityContextSource) method overload. For more information about the use of evidence with overloads of the Load method that take byte arrays, see the Load(array<Byte>[]()[][], array<Byte>[]()[][], Evidence) method overload.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.