Class NativeLibraryHandle
- Namespace
- Ubiquity.NET.InteropHelpers
- Assembly
- Ubiquity.NET.InteropHelpers.dll
Safe handle for a NativeLibrary
public sealed class NativeLibraryHandle : SafeHandle, IDisposable
- Inheritance
-
NativeLibraryHandle
- Implements
- Inherited Members
Constructors
- NativeLibraryHandle()
Initializes a new instance of the NativeLibraryHandle class.
Properties
- IsInvalid
When overridden in a derived class, gets a value indicating whether the handle value is invalid.
Methods
- Load(string, Assembly, DllImportSearchPath?)
Provides a high-level API for loading a native library.
- ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
- TryLoad(string, Assembly, DllImportSearchPath?, out NativeLibraryHandle)
Provides a high-level API that loads a native library and returns a value that indicates whether the operation succeeded.
- TryLoad(string, out NativeLibraryHandle)
Provides a simple API for loading a native library and returns a value that indicates whether the operation succeeded.