RelativeUrl Structure
Provides ways to work with relative URLs.
Namespace
Statiq.Common
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type["RelativeUrl"] class Type type-node

Syntax

public readonly struct RelativeUrl : ValueType

Constructors

Name Summary
RelativeUrl(string, string) Creates an instance of RelativeUrl using the given url string.

Properties

Name Property Type Summary
Fragment string
The URL fragment.
HasRoot bool
true if the URL starts with ~/, otherwise false.
Path NormalizedPath
The URL path.
Query string
The URL query.
Root string
The root to use if the URL starts with a ~/.

Methods

Name Return Value Summary
IsRelative(string) bool
Determines if the given url is relative.
static
ToString() string

Operators

Name Value Summary
implicit operator string(RelativeUrl) string

Extension Methods