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)
'Declaration Public Event ResourceResolve As ResolveEventHandler 'Usage Dim instance As AppDomain Dim handler As ResolveEventHandler AddHandler instance.ResourceResolve, handler
Implements
_AppDomain.ResourceResolveThe ResolveEventHandler for this event can attempt to locate the assembly containing the resource and return it.
Important 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.
- SecurityPermission
to add an event handler for this event. Associated enumeration: SecurityPermissionFlag.ControlAppDomain. Security action: LinkDemand.
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.
Important Note: