UnhandledError UnhandledError UnhandledError Class

Represents the error data for a system error as reported by an UnhandledErrorDetected event.

Syntax

Declaration

public sealed class UnhandledErrorpublic sealed class UnhandledErrorPublic NotInheritable Class UnhandledError

Properties summary

Gets a value that indicates whether the error has been handled.

Methods summary

Wraps the underlying error info in a language specific exception, and throws the error.

Properties

  • Handled
    Handled
    Handled
    Handled

    Gets a value that indicates whether the error has been handled.

    public bool Handled { get; }public bool Handled { get; }Public ReadOnly Property Handled As boolpublic bool Handled { get; }

    Property Value

    • bool
      bool
      bool

      true if the error has been handled. A value of true permits the app to continue. false if the error has not been handled. A value of false can result in the app being terminated once this event propagates to the Windows Runtime system.

Methods

  • Propagate()
    Propagate()
    Propagate()
    Propagate()

    Wraps the underlying error info in a language specific exception, and throws the error.

    public void Propagate()public void Propagate()Public Function Propagate() As voidpublic void Propagate()

    Remarks

    In addition to throwing the language-specific wrapped error, calling this method marks the error as handled (sets Handled to true). However, if an error is returned from a delegate, the handled state is set to false.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.ApplicationModel.Core.dll