Condividi tramite


UnhandledExceptionEventArgs Classe

Definizione

Fornisce dati per l'evento UnhandledException .

public ref class UnhandledExceptionEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UnhandledExceptionEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UnhandledExceptionEventArgs
Public NotInheritable Class UnhandledExceptionEventArgs
Ereditarietà
Object Platform::Object IInspectable UnhandledExceptionEventArgs
Attributi

Commenti

Per altre informazioni su come scrivere un gestore in base al delegato UnhandledExceptionEventHandler , vedere Gestione delle eccezioni (Guida alla programmazione C#) e osservazioni in UnhandledException.

Proprietà

Exception

Ottiene il codice associato all'eccezione HRESULT non gestita.

Handled

Ottiene o imposta un valore che indica se l'eccezione è gestita.

Message

Ottiene la stringa del messaggio come passata dall'eccezione non gestita di origine.

Si applica a

Vedi anche