Class Link
Represents a link to another resource.
public sealed class Link
- Inheritance
-
Link
- Inherited Members
Constructors
Link(string, string, string?, bool)
Creates a new link
public Link(string rel, string href, string? title = null, bool templated = false)
Parameters
rel
stringThe relation type of the link.
href
stringThe href/target of the link.
title
stringThe title of the link (optional).
templated
boolIndicates whether the link is an URI Template (RFC 6570).
Properties
Href
The href/target of the link.
public string Href { get; }
Property Value
Rel
The relation type of the link.
public string Rel { get; }
Property Value
Templated
Indicates whether the link is an URI Template (RFC 6570).
public bool Templated { get; }
Property Value
Title
The title of the link (optional).
public string? Title { get; }