共用方式為


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) ,就會引發此事件。

適用於