Export (0) Print
Expand All

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)

'Declaration
Public Event ResourceResolve As ResolveEventHandler

Implements

_AppDomain.ResourceResolve

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

Important noteImportant

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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

  • SecurityCriticalAttribute 

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

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft