FileServerOptions FileServerOptions FileServerOptions Class

Definition

Options for all of the static file middleware components

public class FileServerOptions : Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase
type FileServerOptions = class
    inherit SharedOptionsBase
Public Class FileServerOptions
Inherits SharedOptionsBase
Inheritance
FileServerOptionsFileServerOptionsFileServerOptions

Constructors

FileServerOptions() FileServerOptions() FileServerOptions()

Creates a combined options class for all of the static file middleware components.

Properties

DefaultFilesOptions DefaultFilesOptions DefaultFilesOptions

Options for configuring the DefaultFilesMiddleware.

DirectoryBrowserOptions DirectoryBrowserOptions DirectoryBrowserOptions

Options for configuring the DirectoryBrowserMiddleware.

EnableDefaultFiles EnableDefaultFiles EnableDefaultFiles

Default files are enabled by default.

EnableDirectoryBrowsing EnableDirectoryBrowsing EnableDirectoryBrowsing

Directory browsing is disabled by default.

FileProvider FileProvider FileProvider

The file system used to locate resources

(Inherited from SharedOptionsBase)
RequestPath RequestPath RequestPath

The relative request path that maps to static resources.

(Inherited from SharedOptionsBase)
SharedOptions SharedOptions SharedOptions

Options common to several middleware components

(Inherited from SharedOptionsBase)
StaticFileOptions StaticFileOptions StaticFileOptions

Options for configuring the StaticFileMiddleware.

Applies to