Table of Contents

Method CheckLibraryPath

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

CheckLibraryPath(string, string, string, out string)

Checks whether the specified library file exists in the given root path, trying platform-specific and architecture folders first.

public static bool CheckLibraryPath(string root, string arch, string libWithExt, out string foundPath)

Parameters

root string

The base directory to search. May be null or empty.

arch string

The process architecture folder name (for example, "x64", "arm").

libWithExt string

The library file name including extension.

foundPath string

When the method returns true, contains the full path to the discovered library file; otherwise null.

Returns

bool

true if the library file was found in the given root path; otherwise false.