AssemblyLoadContext.ResolvingUnmanagedDll 事件     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在解析本机库失败时发生。
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) )无法解析本机库,则会引发此事件。