MvcRazorPagesMvcBuilderExtensions.WithRazorPagesAtContentRoot 方法

定義

將 Razor 頁面設定為在內容根目錄 (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

適用於