MvcRazorPagesMvcCoreBuilderExtensions.WithRazorPagesRoot 方法

定义

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

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

参数

rootDirectory
String

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

返回

适用于