Share via


IAssemblyLoader.LoadAssembly Method

Definition

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

assemblyFullName
String

The full name of the assembly, as might be found in the FullName property.

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.

Applies to