共用方式為


DirectoryBrowserMiddleware 建構函式

定義

多載

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>)

來源:
DirectoryBrowserMiddleware.cs
來源:
DirectoryBrowserMiddleware.cs

建立 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>)

來源:
DirectoryBrowserMiddleware.cs

建立 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>)

來源:
DirectoryBrowserMiddleware.cs
來源:
DirectoryBrowserMiddleware.cs

建立 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

HtmlEncoder預設 HtmlDirectoryFormatter 所使用的 。

options
IOptions<DirectoryBrowserOptions>

此中介軟體的組態。

適用於

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>)

來源:
DirectoryBrowserMiddleware.cs

建立 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

HtmlEncoder預設 HtmlDirectoryFormatter 所使用的 。

options
IOptions<DirectoryBrowserOptions>

此中介軟體的組態。

適用於