Partager via


HostingHostBuilderExtensions.UseEnvironment(IHostBuilder, String) Méthode

Définition

Spécifie l’environnement à utiliser par l’hôte.

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

Paramètres

hostBuilder
IHostBuilder

IHostBuilder à configurer.

environment
String

Environnement dans lequel héberger l’application.

Retours

Le IHostBuilder.

S’applique à