Freigeben über


HttpsPolicyBuilderExtensions.UseHttpsRedirection(IApplicationBuilder) Methode

Definition

Fügt Middleware zum Umleiten von HTTP-Anforderungen an HTTPS hinzu.

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

Parameter

app
IApplicationBuilder

Die IApplicationBuilder instance diese Methode erweitert.

Gibt zurück

Die IApplicationBuilder für HttpsRedirection.

Gilt für: