UsePathBaseExtensions.UsePathBase(IApplicationBuilder, PathString) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將中介軟體從要求路徑擷取指定的路徑基底,並將它貼到要求路徑基底。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UsePathBase(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::PathString pathBase);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UsePathBase (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString pathBase);
static member UsePathBase : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UsePathBase (app As IApplicationBuilder, pathBase As PathString) As IApplicationBuilder
參數
IApplicationBuilder 執行個體。
- pathBase
- PathString
要擷取的路徑基底。
傳回
IApplicationBuilder 執行個體。