共用方式為


RewriteBuilderExtensions.UseRewriter 方法

定義

多載

UseRewriter(IApplicationBuilder)

檢查指定的 URL 是否符合規則和條件,並在相符時修改 HttpCoNtext。

UseRewriter(IApplicationBuilder, RewriteOptions)

檢查指定的 URL 是否符合規則和條件,並在相符時修改 HttpCoNtext。

UseRewriter(IApplicationBuilder)

來源:
RewriteBuilderExtensions.cs
來源:
RewriteBuilderExtensions.cs
來源:
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)

來源:
RewriteBuilderExtensions.cs
來源:
RewriteBuilderExtensions.cs
來源:
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

重寫的選項。

傳回

適用於