RewriteBuilderExtensions.UseRewriter 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
用于重写的选项。