This documentation is archived and is not being maintained.

AppDomain.ResourceResolve Event

Occurs when the resolution of a resource fails because the resource is not a valid linked or embedded resource in the assembly.

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

public event ResolveEventHandler ResourceResolve



The ResolveEventHandler for this event can attempt to locate the assembly containing the resource and return it.

Important noteImportant Note:

This event is not raised if resolution fails because no file can be found for a valid linked resource. It is raised if a manifest resource stream cannot be found, but it is not raised if an individual resource key cannot be found.

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 Consuming Events.

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

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

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0