DirectoryBrowserExtensions.UseDirectoryBrowser Method
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.
Overloads
UseDirectoryBrowser(IApplicationBuilder) |
Enable directory browsing on the current path |
UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions) |
Enable directory browsing with the given options |
UseDirectoryBrowser(IApplicationBuilder, String) |
Enables directory browsing for the given request path |
UseDirectoryBrowser(IApplicationBuilder)
Enable directory browsing on the current path
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDirectoryBrowser(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseDirectoryBrowser : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDirectoryBrowser (app As IApplicationBuilder) As IApplicationBuilder
Parameters
Returns
Remarks
Files are served from the path specified in WebRootPath or WebRootFileProvider which defaults to the 'wwwroot' subfolder.
Applies to
UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions)
Enable directory browsing with the given options
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDirectoryBrowser(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DirectoryBrowserOptions options);
static member UseDirectoryBrowser : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.DirectoryBrowserOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDirectoryBrowser (app As IApplicationBuilder, options As DirectoryBrowserOptions) As IApplicationBuilder
Parameters
- options
- DirectoryBrowserOptions
Returns
Applies to
UseDirectoryBrowser(IApplicationBuilder, String)
Enables directory browsing for the given request path
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDirectoryBrowser(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, System::String ^ requestPath);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string requestPath);
static member UseDirectoryBrowser : Microsoft.AspNetCore.Builder.IApplicationBuilder * string -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDirectoryBrowser (app As IApplicationBuilder, requestPath As String) As IApplicationBuilder
Parameters
- requestPath
- String
The relative request path.
Returns
Remarks
Files are served from the path specified in WebRootPath or WebRootFileProvider which defaults to the 'wwwroot' subfolder.