共用方式為


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這個方法擴充的實例。

傳回

HttpsRedirection IApplicationBuilder 的 。

適用於