Table of Contents

Class Link

Namespace
TypedRest.Links
Assembly
TypedRest.dll

Represents a link to another resource.

public sealed class Link
Inheritance
Link
Inherited Members

Constructors

Creates a new link

public Link(string rel, string href, string? title = null, bool templated = false)

Parameters

rel string

The relation type of the link.

href string

The href/target of the link.

title string

The title of the link (optional).

templated bool

Indicates whether the link is an URI Template (RFC 6570).

Properties

The href/target of the link.

public string Href { get; }

Property Value

string

The relation type of the link.

public string Rel { get; }

Property Value

string

Indicates whether the link is an URI Template (RFC 6570).

public bool Templated { get; }

Property Value

bool

The title of the link (optional).

public string? Title { get; }

Property Value

string