This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

DownloadLink Pennington.Navigation

A downloadable artifact a site advertises in its chrome (for example a sidebar "Download as PDF" link).

Properties

Label string
Display-ready link text, already localized by the provider.
RoutePrefix string
Canonical route prefix the artifact covers (for example /tutorials/); / for a whole-site artifact.
Url string
Site-relative URL of the artifact (for example pdf/tutorials.pdf).

Constructors

#
public DownloadLink(string Label, string Url, string RoutePrefix)

A downloadable artifact a site advertises in its chrome (for example a sidebar "Download as PDF" link).

Parameters

Label string
Display-ready link text, already localized by the provider.
Url string
Site-relative URL of the artifact (for example pdf/tutorials.pdf).
RoutePrefix string
Canonical route prefix the artifact covers (for example /tutorials/); / for a whole-site artifact.

Pennington.Navigation.DownloadLink

namespace Pennington.Navigation;

/// A downloadable artifact a site advertises in its chrome (for example a sidebar "Download as PDF" link).
public record DownloadLink
{
    /// A downloadable artifact a site advertises in its chrome (for example a sidebar "Download as PDF" link).
    
public DownloadLink(string Label, string Url, string RoutePrefix)
; /// Display-ready link text, already localized by the provider.
public string Label { get; set; }
/// Canonical route prefix the artifact covers (for example /tutorials/); / for a whole-site artifact.
public string RoutePrefix { get; set; }
/// Site-relative URL of the artifact (for example pdf/tutorials.pdf).
public string Url { get; set; }
}