DefaultFilesOptions Class

Definition

Options for selecting default file names.

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

Constructors

DefaultFilesOptions()

Configuration for the DefaultFilesMiddleware.

DefaultFilesOptions(SharedOptions)

Configuration for the DefaultFilesMiddleware.

Properties

DefaultFileNames

An ordered list of file names to select by default. List length and ordering may affect performance.

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.

(Inherited from SharedOptionsBase)
SharedOptions

Options common to several middleware components

(Inherited from SharedOptionsBase)

Applies to