Export (0) Print
Expand All
Expand Minimize

AssemblyLoadEventHandler Delegate

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

[Visual Basic]
<Serializable>
Public Delegate Sub AssemblyLoadEventHandler( _
   ByVal sender As Object, _
   ByVal args As AssemblyLoadEventArgs _
)
[C#]
[Serializable]
public delegate void AssemblyLoadEventHandler(
   object sender,
   AssemblyLoadEventArgs args
);
[C++]
[Serializable]
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.

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft