Partager via


HttpsPolicyBuilderExtensions.UseHttpsRedirection(IApplicationBuilder) Méthode

Définition

Ajoute un intergiciel pour rediriger les requêtes HTTP vers 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

Paramètres

app
IApplicationBuilder

La IApplicationBuilder instance cette méthode s’étend.

Retours

IApplicationBuilder pour HttpsRedirection.

S’applique à