DirectoryBrowserExtensions.UseDirectoryBrowser 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UseDirectoryBrowser(IApplicationBuilder) |
在当前路径上启用目录浏览 |
UseDirectoryBrowser(IApplicationBuilder, DirectoryBrowserOptions) |
使用给定的选项启用目录浏览 |
UseDirectoryBrowser(IApplicationBuilder, String) |
启用给定请求路径的目录浏览 |
UseDirectoryBrowser(IApplicationBuilder)
在当前路径上启用目录浏览
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)
使用给定的选项启用目录浏览
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
参数
- options
- DirectoryBrowserOptions
返回
适用于
UseDirectoryBrowser(IApplicationBuilder, String)
启用给定请求路径的目录浏览
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”子文件夹。