RewriteBuilderExtensions.UseRewriter 方法

定义

重载

UseRewriter(IApplicationBuilder)

检查给定 URL 是否与规则和条件匹配,并在匹配时修改 HttpContext。

UseRewriter(IApplicationBuilder, RewriteOptions)

检查给定 URL 是否与规则和条件匹配,并在匹配时修改 HttpContext。

UseRewriter(IApplicationBuilder)

Source:
RewriteBuilderExtensions.cs
Source:
RewriteBuilderExtensions.cs
Source:
RewriteBuilderExtensions.cs

检查给定 URL 是否与规则和条件匹配,并在匹配时修改 HttpContext。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseRewriter(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRewriter (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseRewriter : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRewriter (app As IApplicationBuilder) As IApplicationBuilder

参数

返回

适用于

UseRewriter(IApplicationBuilder, RewriteOptions)

Source:
RewriteBuilderExtensions.cs
Source:
RewriteBuilderExtensions.cs
Source:
RewriteBuilderExtensions.cs

检查给定 URL 是否与规则和条件匹配,并在匹配时修改 HttpContext。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseRewriter(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRewriter (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Rewrite.RewriteOptions options);
static member UseRewriter : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRewriter (app As IApplicationBuilder, options As RewriteOptions) As IApplicationBuilder

参数

options
RewriteOptions

用于重写的选项。

返回

适用于