public sealed record DesktopContent.Directory : DesktopContent, IEquatable<DesktopContent.Directory> Serves the files in a local directory.
Parameters
RootThe directory, absolute or relative to the current directory. It must exist when the surface is created.
EntryThe file the presentation opens, relative to
Root, such asindex.html. When omitted, a request for a directory opens itsindex.html,index.htm,index.tsorindex.js. The entry is a file path, not a URL: an entry with a?queryor#fragmentthrows aDesktopConfigurationExceptionwhose diagnostic code iscontent-entry-invalid.
Constructors
Directory
public Directory(string Root, string? Entry = null) Serves the files in a local directory.
Parameters
RootThe directory, absolute or relative to the current directory. It must exist when the surface is created.
EntryThe file the presentation opens, relative to
Root, such asindex.html. When omitted, a request for a directory opens itsindex.html,index.htm,index.tsorindex.js. The entry is a file path, not a URL: an entry with a?queryor#fragmentthrows aDesktopConfigurationExceptionwhose diagnostic code iscontent-entry-invalid.
Properties
Entry
public string? Entry { get; init; } Gets the file the presentation opens, relative to Directory.Root, or null for index discovery.
Root
public string Root { get; init; } Gets the directory, absolute or relative to the current directory.