HstsBuilderExtensions.UseHsts(IApplicationBuilder) Methode

Definition

Fügt Middleware für die Verwendung von HSTS hinzu, wodurch der Strict-Transport-Security-Header hinzugefügt wird.

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

Parameter

app
IApplicationBuilder

Die IApplicationBuilder instance diese Methode erweitert.

Gibt zurück

Gilt für: