HostingAbstractionsWebHostBuilderExtensions.UseContentRoot(IWebHostBuilder, String) HostingAbstractionsWebHostBuilderExtensions.UseContentRoot(IWebHostBuilder, String) HostingAbstractionsWebHostBuilderExtensions.UseContentRoot(IWebHostBuilder, String) HostingAbstractionsWebHostBuilderExtensions.UseContentRoot(IWebHostBuilder, String) Method

Definition

Specify the content root directory to be used by the web host.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseContentRoot(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, System::String ^ contentRoot);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseContentRoot (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string contentRoot);
static member UseContentRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseContentRoot (hostBuilder As IWebHostBuilder, contentRoot As String) As IWebHostBuilder

Parameters

contentRoot
String String String String

Path to root directory of the application.

Returns

Applies to