AssemblyLoadEventHandler 委托

定义

表示处理 AppDomainAssemblyLoad 事件的方法。

public delegate void AssemblyLoadEventHandler(System::Object ^ sender, AssemblyLoadEventArgs ^ args);
public delegate void AssemblyLoadEventHandler(object? sender, AssemblyLoadEventArgs args);
public delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args);
[System.Serializable]
public delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args);
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args);
type AssemblyLoadEventHandler = delegate of obj * AssemblyLoadEventArgs -> unit
[<System.Serializable>]
type AssemblyLoadEventHandler = delegate of obj * AssemblyLoadEventArgs -> unit
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type AssemblyLoadEventHandler = delegate of obj * AssemblyLoadEventArgs -> unit
Public Delegate Sub AssemblyLoadEventHandler(sender As Object, args As AssemblyLoadEventArgs)

参数

sender
Object

事件源。

args
AssemblyLoadEventArgs

包含事件数据的 AssemblyLoadEventArgs

属性

注解

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

扩展方法

GetMethodInfo(Delegate)

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

适用于