共用方式為


UsePathBaseExtensions.UsePathBase(IApplicationBuilder, PathString) 方法

定義

將中介軟體從要求路徑擷取指定的路徑基底,並將它貼到要求路徑基底。

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

參數

pathBase
PathString

要擷取的路徑基底。

傳回

IApplicationBuilder 執行個體。

適用於