Condividi tramite


HostingHostBuilderExtensions.UseContentRoot(IHostBuilder, String) Metodo

Definizione

Specifica la directory radice del contenuto da utilizzare dall'host.

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

Parametri

hostBuilder
IHostBuilder

Oggetto IHostBuilder da configurare.

contentRoot
String

Percorso della directory radice dell'applicazione.

Restituisce

Oggetto IHostBuilder.

Si applica a