DirectoryBrowserMiddleware 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DirectoryBrowserOptions>) |
创建 SendFileMiddleware 的新实例。 使用 Default 实例。 |
DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DirectoryBrowserOptions>) |
创建 SendFileMiddleware 的新实例。 使用 Default 实例。 |
DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>) |
创建 SendFileMiddleware 的新实例。 |
DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>) |
创建 SendFileMiddleware 的新实例。 |
DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DirectoryBrowserOptions>)
创建 SendFileMiddleware 的新实例。 使用 Default 实例。
public:
DirectoryBrowserMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^> ^ options);
public DirectoryBrowserMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> options);
new Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> -> Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IHostingEnvironment, options As IOptions(Of DirectoryBrowserOptions))
参数
- next
- RequestDelegate
管道中的下一个中间件。
- hostingEnv
- IHostingEnvironment
IHostingEnvironment此中间件使用的 。
- options
- IOptions<DirectoryBrowserOptions>
此中间件的配置。
适用于
DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DirectoryBrowserOptions>)
创建 SendFileMiddleware 的新实例。 使用 Default 实例。
public:
DirectoryBrowserMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^> ^ options);
public DirectoryBrowserMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> options);
new Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IWebHostEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> -> Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IWebHostEnvironment, options As IOptions(Of DirectoryBrowserOptions))
参数
- next
- RequestDelegate
管道中的下一个中间件。
- hostingEnv
- IWebHostEnvironment
IWebHostEnvironment此中间件使用的 。
- options
- IOptions<DirectoryBrowserOptions>
此中间件的配置。
适用于
DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>)
创建 SendFileMiddleware 的新实例。
public:
DirectoryBrowserMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnv, System::Text::Encodings::Web::HtmlEncoder ^ encoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^> ^ options);
public DirectoryBrowserMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnv, System.Text.Encodings.Web.HtmlEncoder encoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> options);
new Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IHostingEnvironment * System.Text.Encodings.Web.HtmlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> -> Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IHostingEnvironment, encoder As HtmlEncoder, options As IOptions(Of DirectoryBrowserOptions))
参数
- next
- RequestDelegate
管道中的下一个中间件。
- hostingEnv
- IHostingEnvironment
IHostingEnvironment此中间件使用的 。
- encoder
- HtmlEncoder
- options
- IOptions<DirectoryBrowserOptions>
此中间件的配置。
适用于
DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>)
创建 SendFileMiddleware 的新实例。
public:
DirectoryBrowserMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnv, System::Text::Encodings::Web::HtmlEncoder ^ encoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DirectoryBrowserOptions ^> ^ options);
public DirectoryBrowserMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, System.Text.Encodings.Web.HtmlEncoder encoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> options);
new Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IWebHostEnvironment * System.Text.Encodings.Web.HtmlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DirectoryBrowserOptions> -> Microsoft.AspNetCore.StaticFiles.DirectoryBrowserMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IWebHostEnvironment, encoder As HtmlEncoder, options As IOptions(Of DirectoryBrowserOptions))
参数
- next
- RequestDelegate
管道中的下一个中间件。
- hostingEnv
- IWebHostEnvironment
IWebHostEnvironment此中间件使用的 。
- encoder
- HtmlEncoder
- options
- IOptions<DirectoryBrowserOptions>
此中间件的配置。