Loads an assembly given its display name. The assembly may optionally be shared.
[Visual Basic] Overloads Public Shared Function Load( _ ByVal assemblyString As String, _ ByVal shared As Boolean _ ) As Assembly [C#] public static Assembly Load( string assemblyString, bool shared ); [C++] public: static Assembly* Load( String* assemblyString, bool shared ); [JScript] public static function Load( assemblyString : String, shared : Boolean ) : Assembly;
The loaded assembly.
Exception Type | Condition |
---|---|
ArgumentNullException | if assemblyString is a null reference (in Visual Basic Nothing) |
FileNotFoundException | if assembly is not found |
The assembly is loaded into the domain of the caller.
See AssemblyName for a description of the format of the display name.
Assembly Class | Assembly Members | System.Reflection Namespace | Assembly.Load Overload List