Partage via


HostingHostBuilderExtensions.UseContentRoot(IHostBuilder, String) Méthode

Définition

Spécifie le répertoire racine de contenu à utiliser par l’hôte.

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

Paramètres

hostBuilder
IHostBuilder

IHostBuilder à configurer.

contentRoot
String

Spécifie le répertoire racine de l’application.

Retours

Le IHostBuilder.

S’applique à