System.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.

Syntax

public event ResolveEventHandler ResourceResolve

Remarks

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

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.

Beginning with the net_v40_long, the ResolveEventArgs.RequestingAssembly property contains the assembly that requested the resource. For more information, see ResolveEventArgs.RequestingAssembly.

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

For more information about handling events, see Events Overview.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0