DirectoryBrowserOptions Class

Definition

Directory browsing options

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

Constructors

DirectoryBrowserOptions()

Enabled directory browsing for all request paths

DirectoryBrowserOptions(SharedOptions)

Enabled directory browsing all request paths

Properties

FileProvider

The file system used to locate resources

(Inherited from SharedOptionsBase)
Formatter

The component that generates the view.

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)

Applies to