RewriteOptionsExtensions.AddRewrite メソッド

定義

正規表現が HttpContext の PathString と一致する場合にパスを書き換える規則を追加します。

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

パラメーター

regex
String

比較対象の正規表現文字列。

replacement
String

正規表現が一致する場合、URI を置き換える対象。

skipRemainingRules
Boolean

正規表現が一致する場合は、条件付きで他のルールの処理を停止します。

戻り値

[書き換え] オプション。

適用対象