VisitedLink Struct

An entry of a VisitedLinkStore (https://drafts.csswg.org/selectors-4/#visited-partitioning): the URL of a link and the partition of the document that contains the link.

public readonly struct VisitedLink : IEquatable<VisitedLink>
Implements

Constructors

NameDescription
VisitedLink(string, string, string)An entry of a VisitedLinkStore (https://drafts.csswg.org/selectors-4/#visited-partitioning): the URL of a link and the partition of the document that contains the link.

VisitedLink(string, string, string)

An entry of a VisitedLinkStore (https://drafts.csswg.org/selectors-4/#visited-partitioning): the URL of a link and the partition of the document that contains the link.

public VisitedLink(string Url, string FrameOrigin, string TopLevelSite)

Parameters

Url string
The absolute URL of the link, serialized with its fragment.
FrameOrigin string
The serialized origin of the document that contains the link, e.g. https://www.example.com.
TopLevelSite string
The serialized site of the top-level document of the document that contains the link (https://html.spec.whatwg.org/multipage/browsers.html#obtain-a-site): the scheme and the registrable domain, e.g. https://example.com; the serialized origin when the host has no registrable domain (e.g. an IP address).

Properties

NameDescription
FrameOriginThe serialized origin of the document that contains the link, e.g. https://www.example.com.
TopLevelSiteThe serialized site of the top-level document of the document that contains the link (https://html.spec.whatwg.org/multipage/browsers.html#obtain-a-site): the scheme and the registrable domain, e.g. https://example.com; the serialized origin when the host has no registrable domain (e.g. an IP address).
UrlThe absolute URL of the link, serialized with its fragment.

The serialized origin of the document that contains the link, e.g. https://www.example.com.

public string FrameOrigin { get; init; }

Property value

string

The serialized site of the top-level document of the document that contains the link (https://html.spec.whatwg.org/multipage/browsers.html#obtain-a-site): the scheme and the registrable domain, e.g. https://example.com; the serialized origin when the host has no registrable domain (e.g. an IP address).

public string TopLevelSite { get; init; }

Property value

string

The absolute URL of the link, serialized with its fragment.

public string Url { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(string, string, string)
Equals(VisitedLink)
Equals(object)
GetHashCode()
ToString()

Deconstruct(string, string, string)

public void Deconstruct(out string Url, out string FrameOrigin, out string TopLevelSite)

Parameters

Url string
FrameOrigin string
TopLevelSite string

No documentation is available.

Equals overloads

Equals(VisitedLink)

public bool Equals(VisitedLink other)
Parameters
other VisitedLink
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(VisitedLink, VisitedLink)
operator !=(VisitedLink, VisitedLink)

operator ==(VisitedLink, VisitedLink)

public static bool operator ==(VisitedLink left, VisitedLink right)

Parameters

left VisitedLink
right VisitedLink

Returns

bool

No documentation is available.

operator !=(VisitedLink, VisitedLink)

public static bool operator !=(VisitedLink left, VisitedLink right)

Parameters

left VisitedLink
right VisitedLink

Returns

bool

No documentation is available.