RewriteOptionsExtensions.AddRewrite 메서드

정의

regex가 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

비교할 regex 문자열입니다.

replacement
String

regex가 일치하는 경우 URI를 대체할 항목입니다.

skipRemainingRules
Boolean

regex가 일치하는 경우 조건부로 다른 규칙 처리를 중지합니다.

반환

다시 쓰기 옵션입니다.

적용 대상