使用英语阅读

通过


AssemblyLoadEventHandler 委托

定义

表示处理 AppDomainAssemblyLoad 事件的方法。

C#
public delegate void AssemblyLoadEventHandler(object? sender, AssemblyLoadEventArgs args);
C#
public delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args);
C#
[System.Serializable]
public delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args);
C#
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args);

参数

sender
Object

事件源。

args
AssemblyLoadEventArgs

包含事件数据的 AssemblyLoadEventArgs

属性

注解

AssemblyLoadEventHandler用于指定为响应AssemblyLoad事件而调用的方法。 若要将 的 AssemblyLoadEventHandler 实例与事件相关联,请将 实例添加到 事件。 每当加载程序集时, AssemblyLoadEventHandler 都会调用 引用的方法,直到 AssemblyLoadEventHandler 从事件中删除 。

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。

适用于

产品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1