Table of Contents

Method FreeLibrary

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

FreeLibrary(nint)

Releases the specified dynamically loaded library, freeing associated resources.

public static bool FreeLibrary(nint library)

Parameters

library nint

A handle to the library to be freed. Must not be Zero.

Returns

bool

true if the library was successfully released or if the handle is Zero; otherwise, false.

Remarks

This method determines the operating system at runtime and invokes the appropriate platform-specific library release function. Ensure that the handle passed to this method was obtained from a compatible library loading mechanism.