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)解析原生函式庫,則會觸發此事件。