AssemblyLoadEventHandler AssemblyLoadEventHandler AssemblyLoadEventHandler AssemblyLoadEventHandler Delegate

定义

表示处理 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 Object Object Object

事件源。The source of the event.

继承
AssemblyLoadEventHandlerAssemblyLoadEventHandlerAssemblyLoadEventHandlerAssemblyLoadEventHandler
属性

注解

AssemblyLoadEventHandler用于在响应中指定的方法调用的AssemblyLoad事件。An 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) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

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

适用于