System.ResolveEventHandler Delegate

Assembly: Mscorlib.dll
Namespace: System
Summary
Represents the method that handles the AppDomain.TypeResolve, AppDomain.ResourceResolve, and AppDomain.AssemblyResolve events of an AppDomain.
C# Syntax:
[Serializable]
public delegate Assembly ResolveEventHandler(object sender, ResolveEventArgs args);
Parameters:
The declaration of your event handler must have the same parameters as the ResolveEventHandler delegate declaration.

sender

The source of the event.

args

A ResolveEventArgs that contains the event data. A ResolveEventArgs that contains the event data.

Remarks
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 Managed Extensions for C++ code example in the description for the Delegate class.

See also:
System Namespace

Hierarchy:

Top of page

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