RuntimeServices.TryLoadLibrary Method

Attempts to load an assembly.

Definition

Namespace: Numerics.NET.Providers.InteropServices
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static bool TryLoadLibrary(
	string filename,
	string? libraryPath,
	out Exception?? lastException
)

Parameters

filename  String
The name of the assembly.
libraryPath  String
The base path of the assembly. May be null.
lastException  Exception
On return, the last exception thrown during the search.

Return Value

Boolean
true if the assembly was loaded successfully; otherwise false.

See Also