Assembly.ModuleResolve 事件

定义

当公共语言运行时类加载程序不能通过正常方法解析对程序集的内部模块的引用时发生。

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 

事件类型

实现

属性

注解

此事件使回调有机会查找并加载模块本身并返回它。

适用于