MvcRazorPagesMvcCoreBuilderExtensions.WithRazorPagesRoot(IMvcCoreBuilder, String) MvcRazorPagesMvcCoreBuilderExtensions.WithRazorPagesRoot(IMvcCoreBuilder, String) MvcRazorPagesMvcCoreBuilderExtensions.WithRazorPagesRoot(IMvcCoreBuilder, String) MvcRazorPagesMvcCoreBuilderExtensions.WithRazorPagesRoot(IMvcCoreBuilder, String) Method

Definition

Configures Razor Pages to use the specified rootDirectory.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IMvcCoreBuilder ^ WithRazorPagesRoot(Microsoft::Extensions::DependencyInjection::IMvcCoreBuilder ^ builder, System::String ^ 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

Parameters

rootDirectory
String String String String

The application relative path to use as the root directory.

Returns

Applies to