TryLoad()

NativeLibrary::TryLoad(const String&, IntPtr&) method

Loads native dynamic library.

static bool System::Runtime::InteropServices::NativeLibrary::TryLoad(const String &libraryPath, IntPtr &handle)

Arguments

ParameterTypeDescription
libraryPathconst String&Path to the library.
handleIntPtr&Native library handle.

Return Value

True if library loaded successfuly, false otherwise.

See Also