Sdílet prostřednictvím


HostingHostBuilderExtensions.UseContentRoot(IHostBuilder, String) Metoda

Definice

Určuje kořenový adresář obsahu, který má hostitel používat.

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

Parametry

hostBuilder
IHostBuilder

Konfigurace IHostBuilder .

contentRoot
String

Cesta ke kořenovému adresáři aplikace.

Návraty

Hodnota IHostBuilder

Platí pro