PerformanceNavigation Class

The legacy description of the navigation of the document of a window (https://w3c.github.io/navigation-timing/#sec-window.performance-attribute, performance.navigation).

public sealed class PerformanceNavigation

Properties

NameDescription
RedirectCountGets the number of redirects of the navigation, or 0 when one of them is cross-origin.
TypeGets the type of the navigation: PerformanceNavigation.TypeNavigate, PerformanceNavigation.TypeReload or PerformanceNavigation.TypeBackForward.

RedirectCount

NavigationTiming.cs

Gets the number of redirects of the navigation, or 0 when one of them is cross-origin.

public ushort RedirectCount { get; }

Constants

NameDescription
TypeBackForwardA traversal of the session history.
TypeNavigateA navigation that is not a reload nor a traversal of the session history.
TypeReloadA reload of the document.
TypeReservedAnother type of navigation.

TypeBackForward

A traversal of the session history.

public const ushort TypeBackForward = 2

TypeNavigate

A navigation that is not a reload nor a traversal of the session history.

public const ushort TypeNavigate = 0

TypeReload

A reload of the document.

public const ushort TypeReload = 1

TypeReserved

Another type of navigation.

public const ushort TypeReserved = 255