Sdílet prostřednictvím


HttpsPolicyBuilderExtensions.UseHttpsRedirection(IApplicationBuilder) Metoda

Definice

Přidá middleware pro přesměrování požadavků HTTP na 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

Parametry

app
IApplicationBuilder

Instance IApplicationBuilder , která tato metoda rozšiřuje.

Návraty

The IApplicationBuilder for HttpsRedirection.

Platí pro