AssemblyLoadContext.LoadUnmanagedDll(String) 메서드

정의

파생된 클래스가 이름별로 관리되지 않는 라이브러리를 로드할 수 있습니다.

protected:
 virtual IntPtr LoadUnmanagedDll(System::String ^ unmanagedDllName);
protected virtual IntPtr LoadUnmanagedDll (string unmanagedDllName);
abstract member LoadUnmanagedDll : string -> nativeint
override this.LoadUnmanagedDll : string -> nativeint
Protected Overridable Function LoadUnmanagedDll (unmanagedDllName As String) As IntPtr

매개 변수

unmanagedDllName
String

관리되지 않는 라이브러리의 이름입니다. 일반적으로 해당 경로 또는 확장명이 없는 파일 이름입니다.

반환

IntPtr

nativeint

로드된 라이브러리에 대한 핸들 또는 Zero입니다.

설명

기본 구현에서는 항상 IntPtr.Zero을 반환합니다. 가 반환되면 IntPtr.Zero 런타임은 기본 정책을 사용하여 라이브러리를 로드합니다.

이 가상 메서드를 재정의하여 관리되지 않는 라이브러리 검색 알고리즘을 사용자 지정할 수 있습니다. 재정의된 경우 이름을 사용하여 라이브러리를 식별할 수 있습니다. 로드된 라이브러리는 요청된 이름과 일치할 필요는 없지만 필요에 따라 변환할 수 있습니다. 여기에는 플랫폼별 명명에 대한 이름 조정이 포함될 수 있습니다.

적용 대상