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.
Assembly: mscorlib (in mscorlib.dll)
public: virtual event ResolveEventHandler^ ResourceResolve { void add (ResolveEventHandler^ value); void remove (ResolveEventHandler^ value); }
Implements
_AppDomain::ResourceResolveThe ResolveEventHandler for this event can attempt to locate the assembly containing the resource and return it.
Important |
|---|
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 version 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.
- SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Important