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 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 de la bibliothèque non managée.
Retours
nativeint
Descripteur de système d’exploitation de 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 les méthodes de la System.Runtime.InteropServices.NativeLibrary classe .
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour