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 实例。

适用于