Class PerformanceNavigation
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
IMPORTANT
DeprecatedPerformanceNavigation interface represents information about how the navigation to the current document was done.
[Value("PerformanceNavigation")]
public class PerformanceNavigation
- Inheritance
-
PerformanceNavigation
- Inherited Members
Remarks
WARNING
This interface is deprecated in the Navigation Timing Level 2 specification.
Please use the PerformanceNavigationTiming interface instead.
An object of this type can be obtained by calling the Navigation read-only attribute.
-The Performance that allows access to an object of this type.
-PerformanceNavigationTiming (part of Navigation Timing Level 2) that has superseded this API.
Constructors
PerformanceNavigation()
public PerformanceNavigation()
Fields
TYPE_BACK_FORWARD
[Value("TYPE_BACK_FORWARD")]
public const ushort TYPE_BACK_FORWARD = 2
Field Value
TYPE_NAVIGATE
[Value("TYPE_NAVIGATE")]
public const ushort TYPE_NAVIGATE = 0
Field Value
TYPE_RELOAD
[Value("TYPE_RELOAD")]
public const ushort TYPE_RELOAD = 1
Field Value
TYPE_RESERVED
[Value("TYPE_RESERVED")]
public const ushort TYPE_RESERVED = 255
Field Value
Properties
RedirectCount
IMPORTANT
DeprecatedPerformanceNavigation.redirectCountread-only property returns an
unsigned short representing the number ofREDIRECTs done before reaching the page.
[Value("redirectCount")]
public ushort RedirectCount { get; }
Property Value
- ushort
An
unsigned short.
Remarks
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification.
Please use the PerformanceNavigationTiming interface instead.
-The PerformanceNavigation interface it belongs to.
Type
IMPORTANT
DeprecatedPerformanceNavigation.typeread-only property returns an
unsigned short containing a constantdescribing how the navigation to this page was done.
[Value("type")]
public ushort Type { get; }
Property Value
- ushort
An
unsigned short.Possible values are:NOTE
Historically, developers tested for atypeof"TYPE_BACK_FORWARD"to get an indication of back/forward cache ({{glossary("bfcache")}}) hit rate. This however did not provide any reasons for bfcache blocking, or any other data. The NotRestoredReasons property should be used to monitor the bfcache, going forward. See Monitoring bfcache blocking reasons for more information.
Remarks
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification.
Please use the PerformanceNavigationTiming interface instead.
-The PerformanceNavigation interface it belongs to.
Methods
ToJSON()
IMPORTANT
DeprecatedWARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("toJSON")]
public Object ToJSON()
Returns
- Object
A {{jsxref("JSON")}} object that is the serialization of the PerformanceNavigation object.
Remarks
The toJSON() method of the PerformanceNavigation interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the PerformanceNavigation object.
-JSON