Partager via


HostingAbstractionsWebHostBuilderExtensions.UseContentRoot Méthode

Définition

Spécifiez le répertoire racine de contenu à utiliser par l’hôte 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

Paramètres

hostBuilder
IWebHostBuilder

IWebHostBuilder à configurer.

contentRoot
String

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

Retours

L’IWebHostBuilderopérateur

S’applique à