Compartilhar via


RewriteOptionsExtensions.AddRedirectToHttps Método

Definição

Sobrecargas

AddRedirectToHttps(RewriteOptions)

Redirecionar uma solicitação para https se a solicitação de entrada for http

AddRedirectToHttps(RewriteOptions, Int32)

Redirecionar uma solicitação para https se a solicitação de entrada for http

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

Redirecionar uma solicitação para https se a solicitação de entrada for http

AddRedirectToHttps(RewriteOptions)

Origem:
RewriteOptionsExtensions.cs
Origem:
RewriteOptionsExtensions.cs
Origem:
RewriteOptionsExtensions.cs

Redirecionar uma solicitação para https se a solicitação de entrada for 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

Parâmetros

Retornos

Aplica-se a

AddRedirectToHttps(RewriteOptions, Int32)

Origem:
RewriteOptionsExtensions.cs
Origem:
RewriteOptionsExtensions.cs
Origem:
RewriteOptionsExtensions.cs

Redirecionar uma solicitação para https se a solicitação de entrada for 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

Parâmetros

statusCode
Int32

O status código a ser adicionado à resposta.

Retornos

Aplica-se a

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

Origem:
RewriteOptionsExtensions.cs
Origem:
RewriteOptionsExtensions.cs
Origem:
RewriteOptionsExtensions.cs

Redirecionar uma solicitação para https se a solicitação de entrada for 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

Parâmetros

statusCode
Int32

O status código a ser adicionado à resposta.

sslPort
Nullable<Int32>

A porta SSL a ser adicionada à resposta.

Retornos

Aplica-se a