Class NiteHead
Tags for the document head. The import map (dev only) must come before any module script.
public sealed record NiteHead : IEquatable<NiteHead>
- Inheritance
-
NiteHead
- Implements
- Inherited Members
Constructors
NiteHead(IReadOnlyDictionary<string, string>?, IReadOnlyList<string>, IReadOnlyList<string>)
Tags for the document head. The import map (dev only) must come before any module script.
public NiteHead(IReadOnlyDictionary<string, string>? ImportMap, IReadOnlyList<string> Preloads, IReadOnlyList<string> Scripts)
Parameters
ImportMapIReadOnlyDictionary<string, string>PreloadsIReadOnlyList<string>ScriptsIReadOnlyList<string>
Properties
ImportMap
public IReadOnlyDictionary<string, string>? ImportMap { get; init; }
Property Value
Preloads
public IReadOnlyList<string> Preloads { get; init; }
Property Value
Scripts
public IReadOnlyList<string> Scripts { get; init; }
Property Value
Methods
ToHtml(string?)
public string ToHtml(string? nonce = null)
Parameters
noncestringThe request's CSP nonce, put on every script element.