Loads the assembly with a COFF based image containing an emitted assembly. The assembly is loaded into the domain of the caller using the supplied evidence. The raw bytes representing the symbols for the assembly are also loaded.
[Visual Basic] Overloads Public Shared Function Load( _ ByVal rawAssembly() As Byte, _ ByVal rawSymbolStore() As Byte, _ ByVal securityEvidence As Evidence _ ) As Assembly [C#] public static Assembly Load( byte[] rawAssembly, byte[] rawSymbolStore, Evidence securityEvidence ); [C++] public: static Assembly* Load( unsigned char* rawAssembly[], unsigned char* rawSymbolStore[], Evidence* securityEvidence ); [JScript] public static function Load( rawAssembly : Byte[], rawSymbolStore : Byte[], securityEvidence : Evidence ) : Assembly;
The loaded assembly.
Exception Type | Condition |
---|---|
ArgumentNullException | if rawAssembly is a null reference (in Visual Basic Nothing). |
The assembly is loaded into the domain of the caller.
Assembly Class | Assembly Members | System.Reflection Namespace | Assembly.Load Overload List