AssemblyLoadEventHandler 委托

定义

表示处理 AppDomainAssemblyLoad 事件的方法。Represents the method that handles the AssemblyLoad event of an AppDomain.

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

参数

sender
Object

事件源。The source of the event.

args
AssemblyLoadEventArgs

包含事件数据的 AssemblyLoadEventArgsAn AssemblyLoadEventArgs that contains the event data.

继承
AssemblyLoadEventHandler
属性

注解

用于指定为响应AssemblyLoad事件而调用的方法。 AssemblyLoadEventHandlerAn AssemblyLoadEventHandler is used to specify the methods that are invoked in response to an AssemblyLoad event. 若要将实例AssemblyLoadEventHandler与事件关联, 请将实例添加到事件。To associate an instance of AssemblyLoadEventHandler with an event, add the instance to the event. 只要加载程序集, AssemblyLoadEventHandler就会调用所引用的方法, AssemblyLoadEventHandler直到从事件中移除。The methods referenced by the AssemblyLoadEventHandler are invoked whenever an assembly is loaded, until the AssemblyLoadEventHandler is removed from the event.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于