Share via


DirectoryBrowserExtensions.UseDirectoryBrowser Method

Definition

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)

Source:
DirectoryBrowserExtensions.cs
Source:
DirectoryBrowserExtensions.cs
Source:
DirectoryBrowserExtensions.cs

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)

Source:
DirectoryBrowserExtensions.cs
Source:
DirectoryBrowserExtensions.cs
Source:
DirectoryBrowserExtensions.cs

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

Returns

Applies to

UseDirectoryBrowser(IApplicationBuilder, String)

Source:
DirectoryBrowserExtensions.cs
Source:
DirectoryBrowserExtensions.cs
Source:
DirectoryBrowserExtensions.cs

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.

Applies to