Assembly.ModuleResolve Assembly.ModuleResolve Assembly.ModuleResolve Assembly.ModuleResolve Event

定义

当公共语言运行时类加载程序不能通过正常方法解析对程序集的内部模块的引用时发生。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;
[add: System.Security.SecurityCritical]
[remove: System.Security.SecurityCritical]
public virtual event System.Reflection.ModuleResolveEventHandler ModuleResolve;
member this.ModuleResolve : System.Reflection.ModuleResolveEventHandler 
Public Overridable Custom Event ModuleResolve As ModuleResolveEventHandler 

实现

属性

注解

此事件为回调提供一个机会来查找并加载模块本身并返回它。This event gives the callback a chance to find and load the module itself and return it.

安全性

SecurityCriticalAttribute
需要对直接调用方的完全信任。Requires full trust for the immediate caller. 部分受信任的或透明的代码不能使用此成员。This member cannot be used by partially trusted or transparent code.

适用于