Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AppDomain.ResourceResolve Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

System_CAPS_importantImportant

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 Framework 4, 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 SecurityException is thrown.

For more information about handling events, see Handling and Raising Events.

SecurityCriticalAttribute

requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft