RewriteBuilderExtensions.UseRewriter 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseRewriter(IApplicationBuilder) |
檢查指定的 URL 是否符合規則和條件,並在相符時修改 HttpCoNtext。 |
UseRewriter(IApplicationBuilder, RewriteOptions) |
檢查指定的 URL 是否符合規則和條件,並在相符時修改 HttpCoNtext。 |
UseRewriter(IApplicationBuilder)
檢查指定的 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)
檢查指定的 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
重寫的選項。