Condividi tramite


HostingAbstractionsWebHostBuilderExtensions.UseContentRoot Metodo

Definizione

Specificare la directory radice del contenuto da usare dall'host Web.

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

Parametri

hostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder da configurare.

contentRoot
String

Percorso della directory radice dell'applicazione.

Restituisce

Oggetto IWebHostBuilder.

Si applica a