Method NativeLibraryLoad
NativeLibraryLoad(string, Assembly, DllImportSearchPath?)
Loads native library using NativeLibrary.Load.
public static nint NativeLibraryLoad(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
Parameters
libraryNamestringThe name of the library to load.
assemblyAssemblyThe assembly loading the native library.
searchPathDllImportSearchPath?The search path for the library.
Returns
- nint
The handle to the loaded library.
NativeLibraryLoad(string)
Loads native library using NativeLibrary.Load.
public static nint NativeLibraryLoad(string libraryPath)
Parameters
libraryPathstring