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 assembly may optionally be shared.
[Visual Basic] Overloads Public Shared Function Load( _ ByVal assemblyRef As AssemblyName, _ ByVal assemblySecurity As Evidence, _ ByVal shared As Boolean _ ) As Assembly [C#] public static Assembly Load( AssemblyName assemblyRef, Evidence assemblySecurity, bool shared ); [C++] public: static Assembly* Load( AssemblyName* assemblyRef, Evidence* assemblySecurity, bool shared ); [JScript] public static function Load( assemblyRef : AssemblyName, assemblySecurity : Evidence, shared : Boolean ) : Assembly;
The loaded assembly.
Exception Type | Condition |
---|---|
ArgumentNullException | if assemblyRef is a null reference (in Visual Basic Nothing) |
FileNotFoundException | if assembly is not found |
The assembly is loaded into the domain of the caller.
Assembly Class | Assembly Members | System.Reflection Namespace | Assembly.Load Overload List