HstsMiddleware 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
HstsMiddleware(RequestDelegate, IOptions<HstsOptions>) |
初始化 HSTS 中介軟體。 |
HstsMiddleware(RequestDelegate, IOptions<HstsOptions>, ILoggerFactory) |
初始化 HSTS 中介軟體。 |
HstsMiddleware(RequestDelegate, IOptions<HstsOptions>)
初始化 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))
參數
- next
- RequestDelegate
- options
- IOptions<HstsOptions>
適用於
HstsMiddleware(RequestDelegate, IOptions<HstsOptions>, ILoggerFactory)
初始化 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)
參數
- next
- RequestDelegate
- options
- IOptions<HstsOptions>
- loggerFactory
- ILoggerFactory