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

Definition

Specify the webroot directory to be used by the web host.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseWebRoot (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string webRoot);
static member UseWebRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseWebRoot (hostBuilder As IWebHostBuilder, webRoot As String) As IWebHostBuilder

Parameters

webRoot
String String String

Path to the root directory used by the web server.

Returns

Applies to