NavigationFailedEventArgs NavigationFailedEventArgs NavigationFailedEventArgs Class

Provides event data for the NavigationFailed and NavigationFailed events.

Syntax

Declaration

public sealed class NavigationFailedEventArgspublic sealed class NavigationFailedEventArgsPublic NotInheritable Class NavigationFailedEventArgs

Properties summary

Gets the result code for the exception that is associated with the failed navigation.

Gets or sets a value that indicates whether the failure event has been handled.

Gets the data type of the target page.

Properties

  • Exception
    Exception
    Exception
    Exception

    Gets the result code for the exception that is associated with the failed navigation.

    public HResult Exception { get; }public Exception Exception { get; }Public ReadOnly Property Exception As Exceptionpublic HResult Exception { get; }

    Property Value

  • Handled
    Handled
    Handled
    Handled

    Gets or sets a value that indicates whether the failure event has been handled.

    public bool Handled { get; set; }public bool Handled { get; set; }Public ReadWrite Property Handled As boolpublic bool Handled { get; set; }

    Property Value

    • bool
      bool
      bool

      true if the failure event is handled; false if the failure event is not yet handled.

  • SourcePageType
    SourcePageType
    SourcePageType
    SourcePageType

    Gets the data type of the target page.

    public TypeName SourcePageType { get; }public Type SourcePageType { get; }Public ReadOnly Property SourcePageType As Typepublic TypeName SourcePageType { get; }

    Property Value

    Remarks

    Note

    If you are programming using a Microsoft .NET language (C# or Microsoft Visual Basic), the TypeName type projects as System.Type. If you're using Visual C++ component extensions (C++/CX)), this is a TypeName helper struct.

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.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Navigation.dll