Condividi tramite


RewriteOptionsExtensions.AddRedirect Metodo

Definizione

Overload

AddRedirect(RewriteOptions, String, String)

Reindirizzare la richiesta se la regex corrisponde a PathString di HttpContext

AddRedirect(RewriteOptions, String, String, Int32)

Reindirizzare la richiesta se la regex corrisponde a PathString di HttpContext

AddRedirect(RewriteOptions, String, String)

Origine:
RewriteOptionsExtensions.cs
Origine:
RewriteOptionsExtensions.cs
Origine:
RewriteOptionsExtensions.cs

Reindirizzare la richiesta se la regex corrisponde a PathString di HttpContext

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirect(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, System::String ^ regex, System::String ^ replacement);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirect (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, string regex, string replacement);
static member AddRedirect : Microsoft.AspNetCore.Rewrite.RewriteOptions * string * string -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirect (options As RewriteOptions, regex As String, replacement As String) As RewriteOptions

Parametri

options
RewriteOptions

Oggetto RewriteOptions.

regex
String

Stringa regex da confrontare.

replacement
String

Se la regex corrisponde, cosa sostituire l'URI con.

Restituisce

Opzioni Di riscrittura.

Si applica a

AddRedirect(RewriteOptions, String, String, Int32)

Origine:
RewriteOptionsExtensions.cs
Origine:
RewriteOptionsExtensions.cs
Origine:
RewriteOptionsExtensions.cs

Reindirizzare la richiesta se la regex corrisponde a PathString di HttpContext

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

Parametri

options
RewriteOptions

Oggetto RewriteOptions.

regex
String

Stringa regex da confrontare.

replacement
String

Se la regex corrisponde, cosa sostituire l'URI con.

statusCode
Int32

Codice di stato da aggiungere alla risposta.

Restituisce

Opzioni Di riscrittura.

Si applica a