AssemblyLoadContext.LoadUnmanagedDllFromPath(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- unmanagedDllPath
- String
The path to the unmanaged library.
Returns
IntPtr
nativeint
The OS handle for the loaded native library.
Exceptions
unmanagedDllPath
is null
.
The unmanagedDllPath
argument is empty or not an absolute path.
The library can't be found.
The library is not valid.
Remarks
The OS handle returned by this method can be used with methods of the System.Runtime.InteropServices.NativeLibrary class.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET