DownloadLink
Pennington.Navigation
A downloadable artifact a site advertises in its chrome (for example a sidebar "Download as PDF" link).
Properties
Labelstring- Display-ready link text, already localized by the provider.
RoutePrefixstring- Canonical route prefix the artifact covers (for example
/tutorials/);/for a whole-site artifact. Urlstring- Site-relative URL of the artifact (for example
pdf/tutorials.pdf).
Constructors
DownloadLink
#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
Labelstring- Display-ready link text, already localized by the provider.
Urlstring- Site-relative URL of the artifact (for example
pdf/tutorials.pdf). RoutePrefixstring- 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; }
}