Assembly.ModuleResolve 事件

定義

發生於 Common Language Runtime 類別載入器無法經由一般方法解析對組件內部模組的參考時。Occurs when the common language runtime class loader cannot resolve a reference to an internal module of an assembly through normal means.

public:
 virtual event System::Reflection::ModuleResolveEventHandler ^ ModuleResolve;
public virtual event System.Reflection.ModuleResolveEventHandler? ModuleResolve;
public virtual event System.Reflection.ModuleResolveEventHandler ModuleResolve;
public event System.Reflection.ModuleResolveEventHandler ModuleResolve;
[add: System.Security.SecurityCritical]
[remove: System.Security.SecurityCritical]
public virtual event System.Reflection.ModuleResolveEventHandler ModuleResolve;
member this.ModuleResolve : System.Reflection.ModuleResolveEventHandler 
[<add: System.Security.SecurityCritical>]
[<remove: System.Security.SecurityCritical>]
member this.ModuleResolve : System.Reflection.ModuleResolveEventHandler 
Public Overridable Custom Event ModuleResolve As ModuleResolveEventHandler 
Public Custom Event ModuleResolve As ModuleResolveEventHandler 

事件類型

ModuleResolveEventHandler

實作

屬性

備註

此事件可讓回呼有機會尋找並載入模組本身,並將其傳回。This event gives the callback a chance to find and load the module itself and return it.

適用於