Partager via


DirectoryBrowserMiddleware Constructeurs

Définition

Surcharges

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DirectoryBrowserOptions>)

Crée une instance de SendFileMiddleware. Utilisation de Default instance.

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DirectoryBrowserOptions>)

Crée une instance de SendFileMiddleware. Utilisation de Default instance.

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

Crée une instance de SendFileMiddleware.

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

Crée une instance de SendFileMiddleware.

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DirectoryBrowserOptions>)

Source:
DirectoryBrowserMiddleware.cs
Source:
DirectoryBrowserMiddleware.cs

Crée une instance de SendFileMiddleware. Utilisation de 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))

Paramètres

next
RequestDelegate

Intergiciel (middleware) suivant dans le pipeline.

hostingEnv
IHostingEnvironment

IHostingEnvironment utilisé par ce middleware.

options
IOptions<DirectoryBrowserOptions>

Configuration de l'intergiciel (middleware)

S’applique à

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DirectoryBrowserOptions>)

Source:
DirectoryBrowserMiddleware.cs

Crée une instance de SendFileMiddleware. Utilisation de 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))

Paramètres

next
RequestDelegate

Intergiciel (middleware) suivant dans le pipeline.

hostingEnv
IWebHostEnvironment

IWebHostEnvironment utilisé par ce middleware.

options
IOptions<DirectoryBrowserOptions>

Configuration de l'intergiciel (middleware)

S’applique à

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

Source:
DirectoryBrowserMiddleware.cs
Source:
DirectoryBrowserMiddleware.cs

Crée une instance de 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))

Paramètres

next
RequestDelegate

Intergiciel (middleware) suivant dans le pipeline.

hostingEnv
IHostingEnvironment

IHostingEnvironment utilisé par ce middleware.

encoder
HtmlEncoder

HtmlEncoder utilisé par défautHtmlDirectoryFormatter.

options
IOptions<DirectoryBrowserOptions>

Configuration de l'intergiciel (middleware)

S’applique à

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

Source:
DirectoryBrowserMiddleware.cs

Crée une instance de 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))

Paramètres

next
RequestDelegate

Intergiciel (middleware) suivant dans le pipeline.

hostingEnv
IWebHostEnvironment

IWebHostEnvironment utilisé par ce middleware.

encoder
HtmlEncoder

HtmlEncoder utilisé par défautHtmlDirectoryFormatter.

options
IOptions<DirectoryBrowserOptions>

Configuration de l'intergiciel (middleware)

S’applique à