This documentation is archived and is not being maintained.

AssemblyLoadEventHandler Delegate

Represents the method that handles the AssemblyLoad event of an AppDomain.

[Visual Basic]
Public Delegate Sub AssemblyLoadEventHandler( _
   ByVal sender As Object, _
   ByVal args As AssemblyLoadEventArgs _
public delegate void AssemblyLoadEventHandler(
   object sender,
   AssemblyLoadEventArgs args
public __gc __delegate void AssemblyLoadEventHandler(
   Object* sender,
   AssemblyLoadEventArgs* args

[JScript] In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters [Visual Basic, C#, C++]

The declaration of your event handler must have the same parameters as the AssemblyLoadEventHandler delegate declaration.

The source of the event.
An AssemblyLoadEventArgs that contains the event data.


An AssemblyLoadEventHandler is used to specify the methods that are invoked in response to an AssemblyLoad event. To associate an instance of AssemblyLoadEventHandler with an event, add the instance to the event. The methods referenced by the AssemblyLoadEventHandler are invoked whenever an assembly is loaded, until the AssemblyLoadEventHandler is removed from the event.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

System Namespace