AssemblyLoadContext.ResolvingUnmanagedDll 事件

定义

在解析本机库失败时发生。

public:
 event Func<System::Reflection::Assembly ^, System::String ^, IntPtr> ^ ResolvingUnmanagedDll;
public event Func<System.Reflection.Assembly,string,IntPtr>? ResolvingUnmanagedDll;
member this.ResolvingUnmanagedDll : Func<System.Reflection.Assembly, string, nativeint> 
Public Custom Event ResolvingUnmanagedDll As Func(Of Assembly, String, IntPtr) 

事件类型

注解

如果默认解析逻辑 ((包括 LoadUnmanagedDll) )无法解析本机库,则会引发此事件。

适用于