Partager via


RewriteOptionsExtensions.AddRedirectToHttpsPermanent(RewriteOptions) Méthode

Définition

Redirigez une requête vers https si la requête entrante est http, avec le retour d’un code 301 status pour une redirection permanente.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToHttpsPermanent(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttpsPermanent (this Microsoft.AspNetCore.Rewrite.RewriteOptions options);
static member AddRedirectToHttpsPermanent : Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttpsPermanent (options As RewriteOptions) As RewriteOptions

Paramètres

options
RewriteOptions

L’RewriteOptionsopérateur

Retours

S’applique à