AssemblyLoadContext.LoadUnmanagedDllFromPath(String) Méthode
Définition
Charge une bibliothèque non managée à partir du chemin spécifié.Loads an unmanaged library from the specified path.
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.The path to the unmanaged library.
Retours
Descripteur de système d’exploitation de la bibliothèque native chargée.The OS handle for the loaded native library.
Exceptions
unmanagedDllPath
a la valeur null
.unmanagedDllPath
is null
.
L’argument unmanagedDllPath
est vide ou n’est pas un chemin absolu.The unmanagedDllPath
argument is empty or not an absolute path.
La bibliothèque est introuvable.The library can't be found.
La bibliothèque n’est pas valide.The library is not valid.
Remarques
Le handle du système d’exploitation retourné par cette méthode peut être utilisé avec les méthodes de la System.Runtime.InteropServices.NativeLibrary classe.The OS handle returned by this method can be used with methods of the System.Runtime.InteropServices.NativeLibrary class.