DefaultFilesExtensions.UseDefaultFiles DefaultFilesExtensions.UseDefaultFiles DefaultFilesExtensions.UseDefaultFiles Method

Definition

Overloads

UseDefaultFiles(IApplicationBuilder) UseDefaultFiles(IApplicationBuilder) UseDefaultFiles(IApplicationBuilder)

Enables default file mapping on the current path

UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions) UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions) UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions)

Enables default file mapping with the given options

UseDefaultFiles(IApplicationBuilder, String) UseDefaultFiles(IApplicationBuilder, String) UseDefaultFiles(IApplicationBuilder, String)

Enables default file mapping for the given request path

UseDefaultFiles(IApplicationBuilder) UseDefaultFiles(IApplicationBuilder) UseDefaultFiles(IApplicationBuilder)

Enables default file mapping on the current path

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseDefaultFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDefaultFiles (app As IApplicationBuilder) As IApplicationBuilder
Parameters
Returns

UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions) UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions) UseDefaultFiles(IApplicationBuilder, DefaultFilesOptions)

Enables default file mapping with the given options

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DefaultFilesOptions options);
static member UseDefaultFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.DefaultFilesOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDefaultFiles (app As IApplicationBuilder, options As DefaultFilesOptions) As IApplicationBuilder
Parameters
Returns

UseDefaultFiles(IApplicationBuilder, String) UseDefaultFiles(IApplicationBuilder, String) UseDefaultFiles(IApplicationBuilder, String)

Enables default file mapping for the given request path

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string requestPath);
static member UseDefaultFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder * string -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDefaultFiles (app As IApplicationBuilder, requestPath As String) As IApplicationBuilder
Parameters
requestPath
String String String

The relative request path.

Returns

Applies to