Udostępnij za pośrednictwem


RewriteOptionsExtensions.AddRedirectToHttps Metoda

Definicja

Przeciążenia

AddRedirectToHttps(RewriteOptions)

Przekierowywanie żądania do protokołu HTTPS, jeśli żądanie przychodzące jest http

AddRedirectToHttps(RewriteOptions, Int32)

Przekierowywanie żądania do protokołu HTTPS, jeśli żądanie przychodzące jest http

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

Przekierowywanie żądania do protokołu HTTPS, jeśli żądanie przychodzące jest http

AddRedirectToHttps(RewriteOptions)

Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs

Przekierowywanie żądania do protokołu HTTPS, jeśli żądanie przychodzące jest http

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

Parametry

options
RewriteOptions

Element RewriteOptions.

Zwraca

Dotyczy

AddRedirectToHttps(RewriteOptions, Int32)

Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs

Przekierowywanie żądania do protokołu HTTPS, jeśli żądanie przychodzące jest http

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToHttps(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode);
static member AddRedirectToHttps : Microsoft.AspNetCore.Rewrite.RewriteOptions * int -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttps (options As RewriteOptions, statusCode As Integer) As RewriteOptions

Parametry

options
RewriteOptions

Element RewriteOptions.

statusCode
Int32

Kod stanu do dodania do odpowiedzi.

Zwraca

Dotyczy

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs
Źródło:
RewriteOptionsExtensions.cs

Przekierowywanie żądania do protokołu HTTPS, jeśli żądanie przychodzące jest http

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToHttps(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode, Nullable<int> sslPort);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, int? sslPort);
static member AddRedirectToHttps : Microsoft.AspNetCore.Rewrite.RewriteOptions * int * Nullable<int> -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttps (options As RewriteOptions, statusCode As Integer, sslPort As Nullable(Of Integer)) As RewriteOptions

Parametry

options
RewriteOptions

Element RewriteOptions.

statusCode
Int32

Kod stanu do dodania do odpowiedzi.

sslPort
Nullable<Int32>

Port SSL do dodania do odpowiedzi.

Zwraca

Dotyczy