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 HResult Exception { get; }Public ReadOnly Property Exception As HResult

    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 bool

    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 TypeName SourcePageType { get; }Public ReadOnly Property SourcePageType As TypeName

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

Details

Assembly

Windows.UI.Xaml.Navigation.dll