UnhandledExceptionEventArgs Klasse

Definition

Stellt Daten für das UnhandledException-Ereignis bereit.

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)]
class UnhandledExceptionEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
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)]
public sealed class UnhandledExceptionEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UnhandledExceptionEventArgs
Public NotInheritable Class UnhandledExceptionEventArgs
Vererbung
Object Platform::Object IInspectable UnhandledExceptionEventArgs
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Weitere Informationen zum Schreiben eines Handlers basierend auf dem UnhandledExceptionEventHandler-Delegat finden Sie unter Ausnahmebehandlung für in C# oder Visual Basic und Hinweise in UnhandledException.

Wenn Sie Visual C++-Komponentenerweiterungen (C++/CX) verwenden, lesen Sie Ausnahmen (C++/CX).

Eigenschaften

Exception

Ruft den HRESULT-Code ab, der der nicht behandelten Ausnahme zugeordnet ist.

Handled

Ruft einen Wert ab, der angibt, ob die Ausnahme behandelt wird, oder legt diesen fest.

Message

Ruft die Meldungszeichenfolge ab, wie sie von der ursprünglichen Ausnahme übergeben wird, die nicht behandelt wird.

Gilt für:

Weitere Informationen