System.Reflection.ModuleResolveEventHandler Delegate

Assembly: Mscorlib.dll
Namespace: System.Reflection
Summary
Represents the method that will handle the Assembly.ModuleResolve event of an Assembly.
C# Syntax:
[Serializable]
public delegate Module ModuleResolveEventHandler(object sender, ResolveEventArgs e);
Parameters:
The declaration of your event handler must have the same parameters as the ModuleResolveEventHandler delegate declaration.

sender

The assembly that was the source of the event.

e

The arguments supplied by the object describing the event.

Remarks
When you create an Assembly delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see the conceptual topic at MSDN: eventsdelegates.

If the common language runtime class loader cannot resolve a reference to an internal module of an assembly through normal means, the event is raised to give the callback a chance to find or load the module itself and return it.

Each derived class of Delegate and MulticastDelegate has a constructor and an Invoke method. See the Managed Extensions for C++ code example given in the description for the Delegate.

See also:
System.Reflection Namespace

Hierarchy:

Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.