AppDomain.AssemblyLoad Event

 

Occurs when an assembly is loaded.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

abstract AssemblyLoad : IEvent<AssemblyLoadEventHandler,
    AssemblyLoadEventArgs>
override AssemblyLoad : IEvent<AssemblyLoadEventHandler,
    AssemblyLoadEventArgs>

The AssemblyLoadEventHandler delegate for this event indicates what assembly was loaded.

To register an event handler for this event, you must have the required permissions, or a SecurityException is thrown.

For more information about handling events, see Handling and Raising Events.

The following sample demonstrates the AssemblyLoad event.

For this code example to run, you must provide the fully qualified assembly name. For information about how to obtain the fully qualified assembly name, see Assembly Names.

No code example is currently available or this language may not be supported.

SecurityCriticalAttribute

Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

.NET Framework
Available since 1.1
Return to top
Show: