Table of Contents

Method TryLoadLocalLibrary

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

TryLoadLocalLibrary<T>(string)

Attempts to load a local library and returns a handle to the loaded library.

public static nint TryLoadLocalLibrary<T>(string libraryName)

Parameters

libraryName string

The name of the library to load. This cannot be null or empty.

Returns

nint

A handle to the loaded library if the operation is successful; otherwise, Zero.

Type Parameters

T

A type used to determine the context for locating the library path.

Remarks

The method resolves the library path based on the specified type T and the provided library name. Ensure that the library exists at the resolved path and is accessible by the application.