MvcRazorPagesMvcBuilderExtensions.WithRazorPagesAtContentRoot 方法

定义

将 Razor Pages 配置为在内容根目录 (ContentRootPath) 根。

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder WithRazorPagesAtContentRoot (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder);
static member WithRazorPagesAtContentRoot : Microsoft.Extensions.DependencyInjection.IMvcBuilder -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function WithRazorPagesAtContentRoot (builder As IMvcBuilder) As IMvcBuilder

参数

返回

IMvcBuilder

适用于