Method LoadLocalLibrary
LoadLocalLibrary<T>(string)
Loads a native library by probing common locations and returns a handle to the loaded library.
public static nint LoadLocalLibrary<T>(string libraryName)
Parameters
libraryNamestringThe base name of the native library (may or may not include an extension).
Returns
Type Parameters
TA type from the assembly used to probe locations alongside the managed assembly.
Exceptions
- DllNotFoundException
Thrown when the library cannot be loaded by the platform loader.