[This documentation is preliminary and is subject to change.]
Occurs when an exception is raised by application code, forwarded from the native level. Applications can mark the occurrence as handled in event data.
Syntax
<Application UnhandledException="eventhandler"/>
Event information
| Delegate | UnhandledExceptionEventHandler |
|---|
Remarks
By default, the Windows Runtime will detect and process unhandled exceptions that are raised from any part of the application. If you would prefer to perform unhandled exception detection and processing, you can handle the UnhandledException event, which is raised by Application for each thrown exception that is unhandled by application code. The UnhandledException event handler is passed an UnhandledExceptionEventArgs object, which stores a reference to the unhandled exception in its Exception property. You can use this information to determine whether an exception is recoverable or not. When you detect and process an unhandled exception and you do not want the Windows Runtime to continue processing it, you have to set the Handled property to true.
Requirements
|
Minimum supported client | Windows 8 Release Preview |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 5/22/2012
