This documentation is archived and is not being maintained.

ResolveEventHandler Delegate

Represents the method that handles the TypeResolve, ResourceResolve, and AssemblyResolve events of an AppDomain.

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

<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public Delegate Function ResolveEventHandler ( _
	sender As Object, _
	args As ResolveEventArgs _
) As Assembly
Dim instance As New ResolveEventHandler(AddressOf HandlerMethod)
/** @delegate */
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public delegate Assembly ResolveEventHandler (
	Object sender, 
	ResolveEventArgs args
JScript supports the use of delegates, but not the declaration of new ones.



The source of the event.


A ResolveEventArgs that contains the event data.

Return Value

The Assembly that resolves the type, assembly, or resource.

If the runtime class loader cannot resolve a reference to an assembly, type, or resource, then the corresponding events are raised to give the callback a chance to tell the runtime which assembly the referenced assembly, type, or resource is in. It is the responsibility of the ResolveEventHandler to return the assembly that resolves the type, assembly, or resource.

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

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0