Freigeben über


DirectoryBrowserMiddleware Konstruktoren

Definition

Überlädt

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DirectoryBrowserOptions>)

Erstellt eine neue Instanz der SendFileMiddleware. Verwenden sie Default instance.

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DirectoryBrowserOptions>)

Erstellt eine neue Instanz der SendFileMiddleware. Verwenden sie Default instance.

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

Erstellt eine neue Instanz der SendFileMiddleware.

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

Erstellt eine neue Instanz der SendFileMiddleware.

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DirectoryBrowserOptions>)

Quelle:
DirectoryBrowserMiddleware.cs
Quelle:
DirectoryBrowserMiddleware.cs

Erstellt eine neue Instanz der SendFileMiddleware. Verwenden sie Default instance.

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

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

hostingEnv
IHostingEnvironment

Die IHostingEnvironment von dieser Middleware verwendete.

options
IOptions<DirectoryBrowserOptions>

Die Konfiguration für diese Middleware.

Gilt für:

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DirectoryBrowserOptions>)

Quelle:
DirectoryBrowserMiddleware.cs

Erstellt eine neue Instanz der SendFileMiddleware. Verwenden sie Default instance.

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

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

hostingEnv
IWebHostEnvironment

Die IWebHostEnvironment von dieser Middleware verwendete.

options
IOptions<DirectoryBrowserOptions>

Die Konfiguration für diese Middleware.

Gilt für:

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

Quelle:
DirectoryBrowserMiddleware.cs
Quelle:
DirectoryBrowserMiddleware.cs

Erstellt eine neue Instanz der 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))

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

hostingEnv
IHostingEnvironment

Die IHostingEnvironment von dieser Middleware verwendete.

encoder
HtmlEncoder

Der HtmlEncoder vom Standard HtmlDirectoryFormatterverwendete .

options
IOptions<DirectoryBrowserOptions>

Die Konfiguration für diese Middleware.

Gilt für:

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

Quelle:
DirectoryBrowserMiddleware.cs

Erstellt eine neue Instanz der 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))

Parameter

next
RequestDelegate

Die nächste Middleware in der Pipeline.

hostingEnv
IWebHostEnvironment

Die IWebHostEnvironment von dieser Middleware verwendete.

encoder
HtmlEncoder

Der HtmlEncoder vom Standard HtmlDirectoryFormatterverwendete .

options
IOptions<DirectoryBrowserOptions>

Die Konfiguration für diese Middleware.

Gilt für: