DirectoryBrowserExtensions.UseDirectoryBrowser 方法

定义

重载

UseDirectoryBrowser(IApplicationBuilder)

在当前路径上启用目录浏览

UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions)

使用给定的选项启用目录浏览

UseDirectoryBrowser(IApplicationBuilder, String)

启用给定请求路径的目录浏览

UseDirectoryBrowser(IApplicationBuilder)

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

在当前路径上启用目录浏览

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

参数

返回

注解

文件从 中指定的 WebRootPath 路径提供, WebRootFileProvider 默认为“wwwroot”子文件夹。

适用于

UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions)

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

使用给定的选项启用目录浏览

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

参数

返回

适用于

UseDirectoryBrowser(IApplicationBuilder, String)

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

启用给定请求路径的目录浏览

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

参数

requestPath
String

相对请求路径。

返回

注解

文件从 中指定的 WebRootPath 路径提供, WebRootFileProvider 默认为“wwwroot”子文件夹。

适用于