IAssemblyLoader.LoadAssembly Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LoadAssembly(AssemblyName) |
Loads an assembly with the specified name. |
LoadAssembly(String, String) |
Loads an assembly with the specified name and path. |
LoadAssembly(AssemblyName)
Loads an assembly with the specified name.
public System.Reflection.Assembly LoadAssembly (System.Reflection.AssemblyName assemblyName);
abstract member LoadAssembly : System.Reflection.AssemblyName -> System.Reflection.Assembly
Public Function LoadAssembly (assemblyName As AssemblyName) As Assembly
Parameters
- assemblyName
- AssemblyName
The assembly name.
Returns
The loaded assembly. Never null
.
Exceptions
May be thrown if the assembly cannot be found or fails to load.
Applies to
LoadAssembly(String, String)
Loads an assembly with the specified name and path.
public System.Reflection.Assembly LoadAssembly (string assemblyFullName, string codeBasePath);
abstract member LoadAssembly : string * string -> System.Reflection.Assembly
Public Function LoadAssembly (assemblyFullName As String, codeBasePath As String) As Assembly
Parameters
- codeBasePath
- String
The path to the assembly to load. May be null.
Returns
The loaded assembly. Never null
.
Exceptions
May be thrown if the assembly cannot be found or fails to load.