UnhandledExceptionEventArgs Class
Definition
Provides data for the UnhandledException event.
Equivalent WinUI class: Microsoft.UI.Xaml.UnhandledExceptionEventArgs.
public ref class UnhandledExceptionEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class UnhandledExceptionEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class UnhandledExceptionEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class UnhandledExceptionEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class UnhandledExceptionEventArgs
Public NotInheritable Class UnhandledExceptionEventArgs
- Inheritance
-
UnhandledExceptionEventArgs
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
For more info on how to write a handler based on the UnhandledExceptionEventHandler delegate, see Exception handling for in C# or Visual Basic and Remarks in UnhandledException.
If you're using Visual C++ component extensions (C++/CX), see Exceptions (C++/CX).
Properties
Exception |
Gets the HRESULT code associated with the unhandled exception. Equivalent WinUI property: Microsoft.UI.Xaml.UnhandledExceptionEventArgs.Exception. |
Handled |
Gets or sets a value that indicates whether the exception is handled. Equivalent WinUI property: Microsoft.UI.Xaml.UnhandledExceptionEventArgs.Handled. |
Message |
Gets the message string as passed by the originating unhandled exception. Equivalent WinUI property: Microsoft.UI.Xaml.UnhandledExceptionEventArgs.Message. |