共用方式為


HstsMiddleware 建構函式

定義

多載

HstsMiddleware(RequestDelegate, IOptions<HstsOptions>)

初始化 HSTS 中介軟體。

HstsMiddleware(RequestDelegate, IOptions<HstsOptions>, ILoggerFactory)

初始化 HSTS 中介軟體。

HstsMiddleware(RequestDelegate, IOptions<HstsOptions>)

來源:
HstsMiddleware.cs
來源:
HstsMiddleware.cs
來源:
HstsMiddleware.cs

初始化 HSTS 中介軟體。

public:
 HstsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::HttpsPolicy::HstsOptions ^> ^ options);
public HstsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HttpsPolicy.HstsOptions> options);
new Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HttpsPolicy.HstsOptions> -> Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of HstsOptions))

參數

適用於

HstsMiddleware(RequestDelegate, IOptions<HstsOptions>, ILoggerFactory)

來源:
HstsMiddleware.cs
來源:
HstsMiddleware.cs

初始化 HSTS 中介軟體。

public:
 HstsMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::HttpsPolicy::HstsOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HstsMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HttpsPolicy.HstsOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HttpsPolicy.HstsOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of HstsOptions), loggerFactory As ILoggerFactory)

參數

loggerFactory
ILoggerFactory

適用於