.NET/Link API Version 1.7 USE FRAMES

TypeLoader.LoadAssembly Method (String, String)

Loads the named assembly from the specified directory, if possible.

[Visual Basic]
Overloads Public Shared Function LoadAssembly( _
   ByVal assemblyName As String, _
   ByVal dir As String _
) As Assembly
[C#]
public static Assembly LoadAssembly(
   string assemblyName,
   string dir
);

Parameters

assemblyName
dir

Remarks

This overload adds the ability to specify a directory in which to search. It is not necessarily the case that if the assembly is found it will be loaded from the named dir. If you supply a full assembly name and the assembly is strong-named, you will either get the assembly loaded from the named dir, or an identical one loaded from somewhere else earlier (since its full name matches exactly, it doesn't matter if it's not from the specified dir). If the assembly is not strong-named, you will get an assembly from a different dir if one with the same short name was loaded from somewhere else previously. It is a design decision not to fail in this case (we couldn't make it succeed--a weak-named assembly can only be loaded once.

See Also

TypeLoader Class | Wolfram.NETLink Namespace | TypeLoader.LoadAssembly Overload List