RewriteOptionsExtensions.AddRewrite(RewriteOptions, String, String, Boolean) Yöntem

Tanım

Regex, HttpContext'in PathString'iyle eş olursa yolu yeniden yazan bir kural ekler.

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

Parametreler

regex
String

Karşılaştırmak için regex dizesi.

replacement
String

Regex eş olursa, uri'nin yerine ne gerekir?

skipRemainingRules
Boolean

Regex eş kalıyorsa, diğer kuralların işlemeyi koşullu olarak durdurun.

Döndürülenler

RewriteOptions

Yeniden yaz seçenekleri.

Şunlara uygulanır