## NativeLibrary::TryLoad method


Loads native dynamic library.

```cpp
static bool System::Runtime::InteropServices::NativeLibrary::TryLoad(const String &libraryPath, IntPtr &handle)
```


| Parameter | Type | Description |
| --- | --- | --- |
| libraryPath | const String\& | Path to the library. |
| handle | IntPtr\& | Native library handle. |

### ReturnValue

True if library loaded successfuly, false otherwise.

## See Also

* Class [String](../../../system/string/)
* Class [NativeLibrary](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.PDF for C++](../../../)
