Class NotRestoredReasonDetails
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalNotRestoredReasonDetails interface of the {{domxref("Performance API", "Performance API", "", "nocode")}} represents a single reason why a navigated page was blocked from using the back/forward cache (bfcache).
[Value("NotRestoredReasonDetails")]
public class NotRestoredReasonDetails
- Inheritance
-
NotRestoredReasonDetails
- Inherited Members
Remarks
An array of NotRestoredReasonDetails objects can be accessed via the Reasons property.
Constructors
NotRestoredReasonDetails()
public NotRestoredReasonDetails()
Properties
Reason
NOTE
Experimentalreason read-only property of theNotRestoredReasonDetails interface returns a string describing a reason that the page was blocked from using the back/forward cache ({{Glossary("bfcache")}}).
[Value("reason")]
public string Reason { get; }
Property Value
- string
A string.There are many different reasons why blocking could occur, and browsers can choose to implement their own specific reasons for blocking, based on how they operate. Developers should avoid depending on specific wording for reasons and be prepared to handle new reasons being added and deleted.The initial values listed in the specification are:Additional blocking reasons may be used by some browsers, for example:
Remarks
Methods
ToJSON()
NOTE
ExperimentaltoJSON() method of the NotRestoredReasonDetails interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the NotRestoredReasonDetails object.
[Value("toJSON")]
public Object ToJSON()
Returns
- Object
A {{jsxref("JSON")}} object that is the serialization of the NotRestoredReasonDetails object.