FileServerOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Options for all of the static file middleware components
public ref class FileServerOptions : Microsoft::AspNetCore::StaticFiles::Infrastructure::SharedOptionsBase
public class FileServerOptions : Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase
type FileServerOptions = class
inherit SharedOptionsBase
Public Class FileServerOptions
Inherits SharedOptionsBase
- Inheritance
Constructors
FileServerOptions() |
Creates a combined options class for all of the static file middleware components. |
Properties
DefaultFilesOptions |
Options for configuring the DefaultFilesMiddleware. |
DirectoryBrowserOptions |
Options for configuring the DirectoryBrowserMiddleware. |
EnableDefaultFiles |
Default files are enabled by default. |
EnableDirectoryBrowsing |
Directory browsing is disabled by default. |
FileProvider |
The file system used to locate resources (Inherited from SharedOptionsBase) |
RedirectToAppendTrailingSlash |
Indicates whether to redirect to add a trailing slash at the end of path. Relative resource links may require this. (Inherited from SharedOptionsBase) |
RequestPath |
The relative request path that maps to static resources. This defaults to the site root '/'. (Inherited from SharedOptionsBase) |
SharedOptions |
Options common to several middleware components (Inherited from SharedOptionsBase) |
StaticFileOptions |
Options for configuring the StaticFileMiddleware. |