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