NavigationDestination Class

https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigationdestination-interface

public sealed class NavigationDestination

Properties

NameDescription
IdGets the ID of the destination entry of a traversal; otherwise an empty string.
IndexGets the index of the destination entry of a traversal; otherwise -1.
KeyGets the key of the destination entry of a traversal; otherwise an empty string.
SameDocumentGets a value indicating whether the navigation stays in the current document.
UrlGets the serialized URL the navigation goes to.

Gets the ID of the destination entry of a traversal; otherwise an empty string.

public string Id { get; }

Gets the index of the destination entry of a traversal; otherwise -1.

public long Index { get; }

Gets the key of the destination entry of a traversal; otherwise an empty string.

public string Key { get; }

SameDocument

NavigationApi.cs

Gets a value indicating whether the navigation stays in the current document.

public bool SameDocument { get; }

Gets the serialized URL the navigation goes to.

public string Url { get; }

Methods

NameDescription
GetState()https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationdestination-getstate

https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationdestination-getstate

public object? GetState()