RewriteOptionsExtensions.AddRedirectToHttps Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddRedirectToHttps(RewriteOptions) |
Redirigir una solicitud a https si la solicitud entrante es http |
AddRedirectToHttps(RewriteOptions, Int32) |
Redirigir una solicitud a https si la solicitud entrante es http |
AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>) |
Redirigir una solicitud a https si la solicitud entrante es http |
AddRedirectToHttps(RewriteOptions)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
Redirigir una solicitud a https si la solicitud entrante es 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
- options
- RewriteOptions
Devoluciones
Se aplica a
AddRedirectToHttps(RewriteOptions, Int32)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
Redirigir una solicitud a https si la solicitud entrante es 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
- options
- RewriteOptions
- statusCode
- Int32
Código de estado que se va a agregar a la respuesta.
Devoluciones
Se aplica a
AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
Redirigir una solicitud a https si la solicitud entrante es 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
- options
- RewriteOptions
- statusCode
- Int32
Código de estado que se va a agregar a la respuesta.