Table of Contents

Class LinkRel

Namespace
ActivityPub.Types.Util
Assembly
ActivityPub.Types.dll

A link relation compatible with Rel. Any string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a valid link relation.

[JsonConverter(typeof(LinkRelConverter))]
public record LinkRel : IEquatable<LinkRel>
Inheritance
LinkRel
Implements
Inherited Members

Constructors

LinkRel(string)

Constructs a LinkRel from a raw input

public LinkRel(string value)

Parameters

value string

Fields

IllegalChars

private static readonly char[] IllegalChars

Field Value

char[]

Properties

Value

String value of the relation

public string Value { get; }

Property Value

string

Operators

implicit operator string(LinkRel)

Converts a LinkRel to its string value

public static implicit operator string(LinkRel linkRel)

Parameters

linkRel LinkRel

Returns

string

implicit operator LinkRel(string)

Parses a raw string into LinkRel

public static implicit operator LinkRel(string str)

Parameters

str string

Returns

LinkRel