RewriteOptionsExtensions.AddRewrite Yöntem

Tanım

Regex HttpContext'in PathString değeriyle eşleşiyorsa 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ıracak regex dizesi.

replacement
String

Regex eşleşiyorsa, uri'nin ne ile değiştirilmemesi gerekir.

skipRemainingRules
Boolean

Regex eşleşiyorsa, diğer kuralları işlemeyi koşullu olarak durdurun.

Döndürülenler

Yeniden yazma seçenekleri.

Şunlara uygulanır