AssemblyLoadContext.LoadUnmanagedDllFromPath(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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.