Method Load
- Namespace
- Ubiquity.NET.InteropHelpers
- Assembly
- Ubiquity.NET.InteropHelpers.dll
Load(string, Assembly, DllImportSearchPath?)
Provides a high-level API for loading a native library.
public static NativeLibraryHandle Load(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
Parameters
libraryName
stringThe name of the native library to be loaded.
assembly
AssemblyThe assembly loading the native library.
searchPath
DllImportSearchPath?The search path.
Returns
- NativeLibraryHandle
The OS handle for the loaded library.
Exceptions
- ArgumentNullException
libraryName
orassembly
is null.- ArgumentException
assembly
is not aRuntimeAssembly
.- DllNotFoundException
The library can't be found.
- BadImageFormatException
The library is not valid.