AssemblyLoadContext.LoadUnmanagedDllFromPath(String) Método
Definição
Carrega uma biblioteca não gerenciada por meio do caminho especificado.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
Parâmetros
- unmanagedDllPath
- String
O caminho para a biblioteca não gerenciada.The path to the unmanaged library.
Retornos
O identificador de SO da biblioteca nativa carregada.The OS handle for the loaded native library.
Exceções
unmanagedDllPath é null.unmanagedDllPath is null.
O argumento unmanagedDllPath está vazio ou não é um caminho absoluto.The unmanagedDllPath argument is empty or not an absolute path.
A biblioteca não pode ser encontrada.The library can't be found.
A biblioteca não é válida.The library is not valid.
Comentários
O identificador do sistema operacional retornado por esse método pode ser usado com métodos da System.Runtime.InteropServices.NativeLibrary classe.The OS handle returned by this method can be used with methods of the System.Runtime.InteropServices.NativeLibrary class.