Udostępnij za pośrednictwem


RewriteOptionsExtensions.AddRedirectToHttpsPermanent(RewriteOptions) Metoda

Definicja

Przekieruj żądanie do https, jeśli żądanie przychodzące jest http, z zwróceniem kodu stanu 301 w celu trwałego przekierowania.

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

Parametry

options
RewriteOptions

Element RewriteOptions.

Zwraca

Dotyczy