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
| Name | Description |
|---|---|
| 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.
Parameters
Urlstring- The absolute URL of the link, serialized with its fragment.
FrameOriginstring- The serialized origin of the document that contains the link, e.g.
https://www.example.com. TopLevelSitestring- 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
| Name | Description |
|---|---|
| FrameOrigin | The serialized origin of the document that contains the link, e.g. https://www.example.com. |
| TopLevelSite | 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). |
| Url | The absolute URL of the link, serialized with its fragment. |
FrameOrigin
VisitedLinkStore.csTopLevelSite
VisitedLinkStore.csThe 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
Methods
| Name | Description |
|---|---|
| Deconstruct(string, string, string) | |
| Equals(VisitedLink) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Deconstruct(string, string, string)
Equals overloads
Equals(VisitedLink)
public bool Equals(VisitedLink other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(VisitedLink, VisitedLink) | |
| operator !=(VisitedLink, VisitedLink) |
operator ==(VisitedLink, VisitedLink)
public static bool operator ==(VisitedLink left, VisitedLink right)No documentation is available.
operator !=(VisitedLink, VisitedLink)
public static bool operator !=(VisitedLink left, VisitedLink right)No documentation is available.