AssemblyLoadContext.LoadUnmanagedDllFromPath(String) Méthode

Définition

Charge une bibliothèque non managée à partir du chemin d’accès spécifié.

protected:
 IntPtr LoadUnmanagedDllFromPath(System::String ^ unmanagedDllPath);
protected IntPtr LoadUnmanagedDllFromPath(string unmanagedDllPath);
member this.LoadUnmanagedDllFromPath : string -> nativeint
Protected Function LoadUnmanagedDllFromPath (unmanagedDllPath As String) As IntPtr

Paramètres

unmanagedDllPath
String

Chemin d’accès à la bibliothèque non managée.

Retours

IntPtr

nativeint

Handle de système d’exploitation pour la bibliothèque native chargée.

Exceptions

unmanagedDllPath a la valeur null.

L’argument unmanagedDllPath est vide ou n’est pas un chemin absolu.

La bibliothèque est introuvable.

La bibliothèque n’est pas valide.

Remarques

Le handle de système d’exploitation retourné par cette méthode peut être utilisé avec des méthodes de la System.Runtime.InteropServices.NativeLibrary classe.

S’applique à