HttpsPolicyBuilderExtensions.UseHttpsRedirection(IApplicationBuilder) 方法

定义

添加用于将 HTTP 请求重定向到 HTTPS 的中间件。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHttpsRedirection(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHttpsRedirection (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseHttpsRedirection : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHttpsRedirection (app As IApplicationBuilder) As IApplicationBuilder

参数

app
IApplicationBuilder

IApplicationBuilder此方法扩展的实例。

返回

IApplicationBuilder HttpsRedirection 的 。

适用于