AssemblyLoadContext.LoadUnmanagedDllFromPath(String) AssemblyLoadContext.LoadUnmanagedDllFromPath(String) AssemblyLoadContext.LoadUnmanagedDllFromPath(String) AssemblyLoadContext.LoadUnmanagedDllFromPath(String) Method

定义

从指定路径加载非托管库。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

参数

unmanagedDllPath
String String String String

非托管库的路径。The path to the unmanaged library.

返回

已加载库的句柄。A handle to the loaded library.

异常

unmanagedDllPathnullunmanagedDllPath is null.

unmanagedDllPath 参数不是绝对路径。The unmanagedDllPath argument is not an absolute path.

找不到非托管库。The unmanaged library cannot be found.

适用于