Condividi tramite


HstsBuilderExtensions.UseHsts(IApplicationBuilder) Metodo

Definizione

Aggiunge il middleware per l'uso di HSTS, che aggiunge l'intestazione Strict-Transport-Security.

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

Parametri

app
IApplicationBuilder

L'istanza di IApplicationBuilder questo metodo si estende.

Restituisce

Si applica a