MvcRazorPagesMvcBuilderExtensions.WithRazorPagesRoot 方法

定义

将 Razor Pages 配置为使用指定的 rootDirectory

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder WithRazorPagesRoot (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, string rootDirectory);
static member WithRazorPagesRoot : Microsoft.Extensions.DependencyInjection.IMvcBuilder * string -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function WithRazorPagesRoot (builder As IMvcBuilder, rootDirectory As String) As IMvcBuilder

参数

rootDirectory
String

要用作根目录的应用程序相对路径。

返回

IMvcBuilder

适用于